aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java7
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);