mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
parent
1dc61691dc
commit
4760510aa2
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user