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/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;