From bb03777d725d7a9d25d3185ad51354929737a1e0 Mon Sep 17 00:00:00 2001 From: Denis Date: Mon, 10 Nov 2014 09:42:36 +0200 Subject: [PATCH] Fixed issue with drawer menu opened with slide change status --- OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java index ab0c182eb8..d8de09029f 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java @@ -94,6 +94,7 @@ public class MapActivityActions implements DialogProvider { private enum DrawerType{ WAYPOINTS, + CONFIGURE_SCREEN, CONFIGURE_MAP, MAIN_MENU } @@ -816,6 +817,7 @@ public class MapActivityActions implements DialogProvider { .listen(new OnContextMenuClick() { @Override public boolean onContextMenuClick(ArrayAdapter adapter, int itemId, int pos, boolean isChecked) { + currentDrawer = DrawerType.CONFIGURE_MAP; prepareConfigureMap(); return false; } @@ -825,7 +827,7 @@ public class MapActivityActions implements DialogProvider { .listen(new OnContextMenuClick() { @Override 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(); prepareOptionsMenu(cm); return false;