diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-01-21 05:30:39 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-01-21 05:30:39 -0800 |
commit | 25740fa10121aad331c9612420c04334c2f9e8e2 (patch) | |
tree | 1caf55e7be3adf9623f88db15c33749bef404294 /src/github | |
parent | 35ee7293c9ee8364795607ee3571f4010dab509e (diff) | |
download | dsub-25740fa10121aad331c9612420c04334c2f9e8e2.tar.gz dsub-25740fa10121aad331c9612420c04334c2f9e8e2.tar.bz2 dsub-25740fa10121aad331c9612420c04334c2f9e8e2.zip |
Hack for downloadRecursively on album context menu
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/fragments/SubsonicFragment.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java index e4cb3d81..19cfe7d4 100644 --- a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java +++ b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java @@ -94,6 +94,7 @@ public class SubsonicFragment extends Fragment { protected GestureDetector gestureScanner;
protected Share share;
protected boolean artist = false;
+ protected boolean artistOverride = false;
public SubsonicFragment() {
super();
@@ -268,21 +269,27 @@ public class SubsonicFragment extends Fragment { toggleStarred(artist);
break;
case R.id.album_menu_play_now:
+ artistOverride = true;
downloadRecursively(entry.getId(), false, false, true, false, false);
break;
case R.id.album_menu_play_shuffled:
+ artistOverride = true;
downloadRecursively(entry.getId(), false, false, true, true, false);
break;
case R.id.album_menu_play_next:
+ artistOverride = true;
downloadRecursively(entry.getId(), false, true, false, false, false, true);
break;
case R.id.album_menu_play_last:
+ artistOverride = true;
downloadRecursively(entry.getId(), false, true, false, false, false);
break;
case R.id.album_menu_download:
+ artistOverride = true;
downloadRecursively(entry.getId(), false, true, false, false, true);
break;
case R.id.album_menu_pin:
+ artistOverride = true;
downloadRecursively(entry.getId(), true, true, false, false, true);
break;
case R.id.album_menu_star:
@@ -738,6 +745,7 @@ public class SubsonicFragment extends Fragment { downloadService.downloadBackground(songs, save);
}
}
+ artistOverride = false;
}
};
@@ -746,7 +754,7 @@ public class SubsonicFragment extends Fragment { protected MusicDirectory getMusicDirectory(String id, String name, boolean refresh, MusicService service, ProgressListener listener) throws Exception {
if(Util.isTagBrowsing(context) && !Util.isOffline(context)) {
- if(artist) {
+ if(artist && !artistOverride) {
return service.getArtist(id, name, refresh, context, listener);
} else {
return service.getAlbum(id, name, refresh, context, listener);
|