aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-12-20 19:50:30 -0800
committerScott Jackson <daneren2005@gmail.com>2013-12-20 19:50:30 -0800
commitd6b422d63993314d6e4f5fc8823e21254512fcee (patch)
treec1d153d0185119261de1fcf98451d37d73229679
parent6577fa6071794b4dc92b05c703a02be13d427048 (diff)
downloaddsub-d6b422d63993314d6e4f5fc8823e21254512fcee.tar.gz
dsub-d6b422d63993314d6e4f5fc8823e21254512fcee.tar.bz2
dsub-d6b422d63993314d6e4f5fc8823e21254512fcee.zip
Fix Add to Playlist not defaulting to select all
-rw-r--r--src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
index c112b4c4..cce14c31 100644
--- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
@@ -222,6 +222,9 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter
selectAll(false, false);
return true;
case R.id.menu_add_playlist:
+ if(getSelectedSongs().isEmpty()) {
+ selectAll(true, false);
+ }
addToPlaylist(getSelectedSongs());
return true;
case R.id.menu_remove_playlist: