aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-01-21 18:09:33 -0800
committerScott Jackson <daneren2005@gmail.com>2016-01-21 18:09:33 -0800
commitff4dd4c28c280b8adff62c113ce0e6dc746ee1e4 (patch)
tree21777105f5c85abacd1f9d66c7023c98e48af9b3 /app/src/main
parent7b28f65e14ed982072f934225305c781862e21a6 (diff)
downloaddsub-ff4dd4c28c280b8adff62c113ce0e6dc746ee1e4.tar.gz
dsub-ff4dd4c28c280b8adff62c113ce0e6dc746ee1e4.tar.bz2
dsub-ff4dd4c28c280b8adff62c113ce0e6dc746ee1e4.zip
Change song clicking to add stuff before it as well
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java10
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);
}
}