diff options
author | Scott Jackson <daneren2005@gmail.com> | 2016-01-18 17:22:28 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2016-01-18 17:22:28 -0800 |
commit | 061c08ba76f3fb54912dcb84b3c7d440755a87a2 (patch) | |
tree | 4ed675c826062326ae7f5ac8c40c17502fb2196f /app/src/main/java | |
parent | 22546b0fc8e166a9df493ced66daf0ead0944c67 (diff) | |
download | dsub-061c08ba76f3fb54912dcb84b3c7d440755a87a2.tar.gz dsub-061c08ba76f3fb54912dcb84b3c7d440755a87a2.tar.bz2 dsub-061c08ba76f3fb54912dcb84b3c7d440755a87a2.zip |
Fixed #621 Disable Play After behavior on Album Lists and only work on songs
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java | 7 |
1 files changed, 5 insertions, 2 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 4209cfd6..316d30ad 100644 --- a/app/src/main/java/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java +++ b/app/src/main/java/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java @@ -387,10 +387,13 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Section } else { List<Entry> songs = new ArrayList<Entry>(); - if(Util.getPreferences(context).getBoolean(Constants.PREFERENCES_KEY_PLAY_NOW_AFTER, true)) { + if(Util.getPreferences(context).getBoolean(Constants.PREFERENCES_KEY_PLAY_NOW_AFTER, true) && albumListType == null) { Iterator it = entries.listIterator(entries.indexOf(entry)); while(it.hasNext()) { - songs.add((Entry) it.next()); + Entry song = (Entry) it.next(); + if(!song.isDirectory()) { + songs.add(song); + } } } else { songs.add(entry); |