diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/app/src/main/java/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java index 0b436218..ba0886c4 100644 --- a/app/src/main/java/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java +++ b/app/src/main/java/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java @@ -388,18 +388,16 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Section List<Entry> songs = new ArrayList<Entry>(); if(Util.getPreferences(context).getBoolean(Constants.PREFERENCES_KEY_PLAY_NOW_AFTER, true) && albumListType == null) { - Iterator it = entries.listIterator(entries.indexOf(entry)); - while(it.hasNext()) { - Entry song = (Entry) it.next(); - if(!song.isDirectory()) { + for(Entry song: entries) { + if(!song.isDirectory() && !song.isVideo()) { songs.add(song); } } + playNow(songs, entry, 0); } else { songs.add(entry); + playNow(songs); } - - playNow(songs); } } |