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