This commit is contained in:
Albert 2017-11-30 02:15:28 +01:00 committed by Isaac Hutt
parent 1dc61691dc
commit 4760510aa2

View File

@ -1565,6 +1565,19 @@ public class KiwixMobileActivity extends BaseActivity implements WebViewCallback
return true;
}
@Override
public boolean onMenuOpened(int featureId, Menu menu) {
if (drawerLayout.isDrawerOpen(tabDrawerLeftContainer)) {
drawerLayout.closeDrawer(tabDrawerLeftContainer);
}
if (drawerLayout.isDrawerOpen(tableDrawerRightContainer)) {
drawerLayout.closeDrawer(tableDrawerRightContainer);
}
return super.onMenuOpened(featureId, menu);
}
// This method refreshes the menu for the bookmark system.
@Override
public boolean onPrepareOptionsMenu(Menu menu) {