toggle Drawer (fixes menu button behavior)

This commit is contained in:
sonora 2014-10-17 11:16:11 +02:00
parent ed1fff8147
commit 226b53ef29

View file

@ -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);
}
}
}