diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-09-23 15:27:18 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-09-23 15:27:18 -0700 |
commit | 2729f4f410694721bc6ef973f7cab92f0497c827 (patch) | |
tree | 494738c7824aae78f7746f05307f304f6df753a5 | |
parent | c78ed40edf799dacd674f8182fe540b0994e5837 (diff) | |
download | dsub-2729f4f410694721bc6ef973f7cab92f0497c827.tar.gz dsub-2729f4f410694721bc6ef973f7cab92f0497c827.tar.bz2 dsub-2729f4f410694721bc6ef973f7cab92f0497c827.zip |
Only show bookmarks tab if server can bookmark
-rw-r--r-- | src/github/daneren2005/dsub/activity/SubsonicActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/activity/SubsonicActivity.java b/src/github/daneren2005/dsub/activity/SubsonicActivity.java index 0c1a2c9a..8ea9452a 100644 --- a/src/github/daneren2005/dsub/activity/SubsonicActivity.java +++ b/src/github/daneren2005/dsub/activity/SubsonicActivity.java @@ -395,7 +395,7 @@ public class SubsonicActivity extends ActionBarActivity implements OnItemSelecte private void populateDrawer() {
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 bookmarksEnabled = prefs.getBoolean(Constants.PREFERENCES_KEY_BOOKMARKS_ENABLED, true) && !Util.isOffline(this) && ServerInfo.canBookmark(this);
boolean sharedEnabled = prefs.getBoolean(Constants.PREFERENCES_KEY_SHARED_ENABLED, true) && !Util.isOffline(this);
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);
|