diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-10-28 18:13:39 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-10-28 18:13:39 -0700 |
commit | 5a144f3b6c03fa46c43ddd84985b4f80c8e65efb (patch) | |
tree | 140cb2b9d8534a14f45ff8352b8cb99f7f85aa4b /src | |
parent | da07c7b3dac3a8019a563e1c4ceeff9d44646867 (diff) | |
download | dsub-5a144f3b6c03fa46c43ddd84985b4f80c8e65efb.tar.gz dsub-5a144f3b6c03fa46c43ddd84985b4f80c8e65efb.tar.bz2 dsub-5a144f3b6c03fa46c43ddd84985b4f80c8e65efb.zip |
Fix web commit
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/activity/SubsonicActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
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<String> drawerItemsList = new ArrayList<String>(Arrays.asList(drawerItems));
List<String> drawerItemsDescriptionsList = new ArrayList<String>(Arrays.asList(drawerItemsDescriptions));
|