prevents a crash caused by unwanted files in the tracks-directory (see #21)

This commit is contained in:
y20k 2018-09-18 11:51:00 +02:00
parent 28e75ecf66
commit 9e08446436

View file

@ -176,7 +176,9 @@ public class DropdownAdapter extends BaseAdapter implements ThemedSpinnerAdapter
// fill list with track bundles
mTrackBundleList = new ArrayList<>();
for (File file : files) {
mTrackBundleList.add(new TrackBundle(file));
if (file.getName().endsWith(FILE_TYPE_TRACKBOOK_EXTENSION)) {
mTrackBundleList.add(new TrackBundle(file));
}
}
}