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