Fixed issue with drawer menu opened with slide change status

This commit is contained in:
Denis 2014-11-10 09:42:36 +02:00
parent 984717dd11
commit 6a7fb4670b

View file

@ -94,6 +94,7 @@ public class MapActivityActions implements DialogProvider {
private enum DrawerType{ private enum DrawerType{
WAYPOINTS, WAYPOINTS,
CONFIGURE_SCREEN,
CONFIGURE_MAP, CONFIGURE_MAP,
MAIN_MENU MAIN_MENU
} }
@ -816,6 +817,7 @@ public class MapActivityActions implements DialogProvider {
.listen(new OnContextMenuClick() { .listen(new OnContextMenuClick() {
@Override @Override
public boolean onContextMenuClick(ArrayAdapter<?> adapter, int itemId, int pos, boolean isChecked) { public boolean onContextMenuClick(ArrayAdapter<?> adapter, int itemId, int pos, boolean isChecked) {
currentDrawer = DrawerType.CONFIGURE_MAP;
prepareConfigureMap(); prepareConfigureMap();
return false; return false;
} }
@ -825,7 +827,7 @@ public class MapActivityActions implements DialogProvider {
.listen(new OnContextMenuClick() { .listen(new OnContextMenuClick() {
@Override @Override
public boolean onContextMenuClick(ArrayAdapter<?> adapter, int itemId, int pos, boolean isChecked) { public boolean onContextMenuClick(ArrayAdapter<?> adapter, int itemId, int pos, boolean isChecked) {
currentDrawer = DrawerType.CONFIGURE_MAP; currentDrawer = DrawerType.CONFIGURE_SCREEN;
ContextMenuAdapter cm = mapActivity.getMapLayers().getMapInfoLayer().getViewConfigureMenuAdapter(); ContextMenuAdapter cm = mapActivity.getMapLayers().getMapInfoLayer().getViewConfigureMenuAdapter();
prepareOptionsMenu(cm); prepareOptionsMenu(cm);
return false; return false;