diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-01-03 19:02:31 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-01-03 19:02:31 -0800 |
commit | 1accc7b28e6feb9a833b56abf665e3e3e5afeef1 (patch) | |
tree | bbc183761a753ea935dad784162fef4d7e530bcf /subsonic-android/src/github/daneren2005 | |
parent | 581bc03c3148a444397bf4e1136c5f7a42a04666 (diff) | |
download | dsub-1accc7b28e6feb9a833b56abf665e3e3e5afeef1.tar.gz dsub-1accc7b28e6feb9a833b56abf665e3e3e5afeef1.tar.bz2 dsub-1accc7b28e6feb9a833b56abf665e3e3e5afeef1.zip |
Don't give advanced shuffle menu when in offline mode
Diffstat (limited to 'subsonic-android/src/github/daneren2005')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/activity/SubsonicTabActivity.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/SubsonicTabActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/SubsonicTabActivity.java index 5f889e67..a6430569 100644 --- a/subsonic-android/src/github/daneren2005/dsub/activity/SubsonicTabActivity.java +++ b/subsonic-android/src/github/daneren2005/dsub/activity/SubsonicTabActivity.java @@ -449,6 +449,13 @@ public class SubsonicTabActivity extends SherlockActivity { }
protected void onShuffleRequested() {
+ if(Util.isOffline(this)) {
+ Intent intent = new Intent(SubsonicTabActivity.this, DownloadActivity.class);
+ intent.putExtra(Constants.INTENT_EXTRA_NAME_SHUFFLE, true);
+ Util.startActivityWithoutTransition(SubsonicTabActivity.this, intent);
+ return;
+ }
+
View dialogView = getLayoutInflater().inflate(R.layout.shuffle_dialog, null);
final EditText startYearBox = (EditText)dialogView.findViewById(R.id.start_year);
final EditText endYearBox = (EditText)dialogView.findViewById(R.id.end_year);
|