toggle Drawer (fixes menu button behavior)
This commit is contained in:
parent
ed1fff8147
commit
226b53ef29
1 changed files with 6 additions and 1 deletions
|
@ -756,7 +756,12 @@ public class MapActivityActions implements DialogProvider {
|
|||
});
|
||||
|
||||
if (show){
|
||||
mDrawerLayout.openDrawer(mDrawerList);
|
||||
// toggle drawer
|
||||
if (!mDrawerLayout.isDrawerOpen(mDrawerList)) {
|
||||
mDrawerLayout.openDrawer(mDrawerList);
|
||||
} else {
|
||||
mDrawerLayout.closeDrawer(mDrawerList);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue