From 1accc7b28e6feb9a833b56abf665e3e3e5afeef1 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 3 Jan 2013 19:02:31 -0800 Subject: Don't give advanced shuffle menu when in offline mode --- .../src/github/daneren2005/dsub/activity/SubsonicTabActivity.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'subsonic-android/src/github/daneren2005') 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); -- cgit v1.2.3