From 5a144f3b6c03fa46c43ddd84985b4f80c8e65efb Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Mon, 28 Oct 2013 18:13:39 -0700 Subject: Fix web commit --- src/github/daneren2005/dsub/activity/SubsonicActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/github') diff --git a/src/github/daneren2005/dsub/activity/SubsonicActivity.java b/src/github/daneren2005/dsub/activity/SubsonicActivity.java index 0f2fe415..11145b9f 100644 --- a/src/github/daneren2005/dsub/activity/SubsonicActivity.java +++ b/src/github/daneren2005/dsub/activity/SubsonicActivity.java @@ -274,15 +274,15 @@ 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 chatEnabled = prefs.getBoolean(Constants.PREFERENCES_KEY_CHAT_ENABLED, true); - if(drawerItems == null || !enabledItems[0].equals(podcastsEnabled) || !enabledItems[1].equals(chatEnabled)) { + if(drawerItems == null || !enabledItems[0] == podcastsEnabled || !enabledItems[1] == chatEnabled) { drawerItems = getResources().getStringArray(R.array.drawerItems); drawerItemsDescriptions = getResources().getStringArray(R.array.drawerItemsDescriptions); // Remove listings that user wants hidden - SharedPreferences prefs = Util.getPreferences(this); int alreadyRemoved = 0; List drawerItemsList = new ArrayList(Arrays.asList(drawerItems)); List drawerItemsDescriptionsList = new ArrayList(Arrays.asList(drawerItemsDescriptions)); -- cgit v1.2.3