aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-07-26 17:21:43 -0700
committerScott Jackson <daneren2005@gmail.com>2016-07-26 17:21:43 -0700
commit48ea6cd175f4e620c668ce94c2b1a0e3e2c906c6 (patch)
tree7a7e8be1a2ea1117f5a82523bdb4020bbd429368 /app/src/main/java/github
parent6e4258781771be4735fe482218e2fec7194fbd9b (diff)
downloaddsub-48ea6cd175f4e620c668ce94c2b1a0e3e2c906c6.tar.gz
dsub-48ea6cd175f4e620c668ce94c2b1a0e3e2c906c6.tar.bz2
dsub-48ea6cd175f4e620c668ce94c2b1a0e3e2c906c6.zip
Fix being able to add albums to playlists
Diffstat (limited to 'app/src/main/java/github')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/fragments/SubsonicFragment.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/fragments/SubsonicFragment.java b/app/src/main/java/github/daneren2005/dsub/fragments/SubsonicFragment.java
index 9cc27128..ab3db50f 100644
--- a/app/src/main/java/github/daneren2005/dsub/fragments/SubsonicFragment.java
+++ b/app/src/main/java/github/daneren2005/dsub/fragments/SubsonicFragment.java
@@ -1008,6 +1008,14 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR
}
protected void addToPlaylist(final List<Entry> songs) {
+ Iterator<Entry> it = songs.iterator();
+ while(it.hasNext()) {
+ Entry entry = it.next();
+ if(entry.isDirectory()) {
+ it.remove();
+ }
+ }
+
if(songs.isEmpty()) {
Util.toast(context, "No songs selected");
return;