aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
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() {