diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-08-20 13:55:50 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-08-20 13:55:50 -0700 |
commit | e15815adf11aa5ffc2243b008c4fe372e54e42ff (patch) | |
tree | 8396b64b0590938e884c9c3d9ef2eb9fb71b6ae5 | |
parent | 5a8417a276688cfb1fcfc1053c4154e026c4c360 (diff) | |
download | dsub-e15815adf11aa5ffc2243b008c4fe372e54e42ff.tar.gz dsub-e15815adf11aa5ffc2243b008c4fe372e54e42ff.tar.bz2 dsub-e15815adf11aa5ffc2243b008c4fe372e54e42ff.zip |
Make clicking play now button in options menu take bookmarks into consideration
-rw-r--r-- | src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java index ef9a6163..fbd87ec7 100644 --- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java +++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java @@ -844,6 +844,13 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter final List<MusicDirectory.Entry> songs = getSelectedSongs();
warnIfNetworkOrStorageUnavailable();
+
+ // Conditions for using play now button
+ if(!append && !save && autoplay && !playNext && !shuffle) {
+ // Call playNow which goes through and tries to use bookmark information
+ playNow(songs);
+ }
+
LoadingTask<Void> onValid = new LoadingTask<Void>(context) {
@Override
protected Void doInBackground() throws Throwable {
|