From 48ea6cd175f4e620c668ce94c2b1a0e3e2c906c6 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 26 Jul 2016 17:21:43 -0700 Subject: Fix being able to add albums to playlists --- .../java/github/daneren2005/dsub/fragments/SubsonicFragment.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app') 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 songs) { + Iterator 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; -- cgit v1.2.3