diff options
author | daneren2005 <daneren2005@gmail.com> | 2014-06-23 15:13:13 -0700 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2014-06-23 15:13:13 -0700 |
commit | 307f39ef35d814b2aded896d88cddd3586acc854 (patch) | |
tree | 6a8d09a1957d0fa5ab22bb336319e8f58635f109 /src/github | |
parent | b1191d9f0f6a1a42f6cb724a068d2594fbbb7ec2 (diff) | |
download | dsub-307f39ef35d814b2aded896d88cddd3586acc854.tar.gz dsub-307f39ef35d814b2aded896d88cddd3586acc854.tar.bz2 dsub-307f39ef35d814b2aded896d88cddd3586acc854.zip |
Don't show share tab if not a shareRole
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/activity/SubsonicActivity.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/activity/SubsonicActivity.java b/src/github/daneren2005/dsub/activity/SubsonicActivity.java index edec6b90..26b5dcc1 100644 --- a/src/github/daneren2005/dsub/activity/SubsonicActivity.java +++ b/src/github/daneren2005/dsub/activity/SubsonicActivity.java @@ -66,6 +66,7 @@ import github.daneren2005.dsub.util.ImageLoader; import github.daneren2005.dsub.util.Util;
import github.daneren2005.dsub.view.DrawerAdapter;
import github.daneren2005.dsub.view.UpdateView;
+import github.daneren2005.dsub.util.UserUtil;
public class SubsonicActivity extends ActionBarActivity implements OnItemSelectedListener {
private static final String TAG = SubsonicActivity.class.getSimpleName();
@@ -384,7 +385,7 @@ public class SubsonicActivity extends ActionBarActivity implements OnItemSelecte SharedPreferences prefs = Util.getPreferences(this);
boolean podcastsEnabled = prefs.getBoolean(Constants.PREFERENCES_KEY_PODCASTS_ENABLED, true);
boolean bookmarksEnabled = prefs.getBoolean(Constants.PREFERENCES_KEY_BOOKMARKS_ENABLED, true) && !Util.isOffline(this);
- boolean sharedEnabled = prefs.getBoolean(Constants.PREFERENCES_KEY_SHARED_ENABLED, true) && !Util.isOffline(this);
+ boolean sharedEnabled = prefs.getBoolean(Constants.PREFERENCES_KEY_SHARED_ENABLED, true) && !Util.isOffline(this) && UserUtil.canShare();
boolean chatEnabled = prefs.getBoolean(Constants.PREFERENCES_KEY_CHAT_ENABLED, true) && !Util.isOffline(this);
boolean adminEnabled = prefs.getBoolean(Constants.PREFERENCES_KEY_ADMIN_ENABLED, true) && !Util.isOffline(this);
|