aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-10-27 17:45:29 -0700
committerScott Jackson <daneren2005@gmail.com>2015-10-27 17:45:29 -0700
commite1df606624d9a18fde6ecb33c0647c2939a9b508 (patch)
treee6860c6bb1df2cd1265cb6987d67f30af23e3dc9 /app
parent75222c4321d5d2c51b49f82fcc9212994c6ace99 (diff)
downloaddsub-e1df606624d9a18fde6ecb33c0647c2939a9b508.tar.gz
dsub-e1df606624d9a18fde6ecb33c0647c2939a9b508.tar.bz2
dsub-e1df606624d9a18fde6ecb33c0647c2939a9b508.zip
Fix for issues where the options menus were not being loaded correctly
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java
index a0f3333e..25acdd02 100644
--- a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java
+++ b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java
@@ -481,9 +481,7 @@ public class SubsonicActivity extends AppCompatActivity implements OnItemSelecte
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater menuInflater = getMenuInflater();
SubsonicFragment currentFragment = getCurrentFragment();
- if(drawerOpen) {
- menuInflater.inflate(R.menu.drawer_menu, menu);
- } else if(currentFragment != null) {
+ if(currentFragment != null) {
try {
SubsonicFragment fragment = getCurrentFragment();
fragment.setContext(this);
@@ -806,6 +804,7 @@ public class SubsonicActivity extends AppCompatActivity implements OnItemSelecte
currentFragment = fragment;
currentFragment.setPrimaryFragment(true);
+ supportInvalidateOptionsMenu();
}
public void invalidate() {