prevents a crash caused by unwanted files in the tracks-directory (see #21)
This commit is contained in:
parent
28e75ecf66
commit
9e08446436
1 changed files with 3 additions and 1 deletions
|
@ -176,7 +176,9 @@ 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) {
|
||||||
mTrackBundleList.add(new TrackBundle(file));
|
if (file.getName().endsWith(FILE_TYPE_TRACKBOOK_EXTENSION)) {
|
||||||
|
mTrackBundleList.add(new TrackBundle(file));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue