From 9576a017517bf51f45be883446a05ce734924103 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Tue, 1 Aug 2017 12:40:58 +0300 Subject: [PATCH] Remove context marker on map tap --- OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenu.java | 3 ++- OsmAnd/src/net/osmand/plus/views/ContextMenuLayer.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenu.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenu.java index 1b2143d488..defbcb878b 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenu.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenu.java @@ -609,7 +609,8 @@ public class MapContextMenu extends MenuTitleController implements StateChangedL public void onSingleTapOnMap() { if (menuController == null || !menuController.handleSingleTapOnMap()) { - hide(); + updateMapCenter(null); + close(); if (mapActivity.getMapLayers().getMapQuickActionLayer().isLayerOn()) { mapActivity.getMapLayers().getMapQuickActionLayer().refreshLayer(); } diff --git a/OsmAnd/src/net/osmand/plus/views/ContextMenuLayer.java b/OsmAnd/src/net/osmand/plus/views/ContextMenuLayer.java index d95ac0bf2d..cabc65f0de 100644 --- a/OsmAnd/src/net/osmand/plus/views/ContextMenuLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/ContextMenuLayer.java @@ -763,7 +763,8 @@ public class ContextMenuLayer extends OsmandMapLayer { if (movementListener.onTouchEvent(event)) { if (menu.isVisible()) { - menu.hide(); + menu.updateMapCenter(null); + menu.close(); } if (multiSelectionMenu.isVisible()) { multiSelectionMenu.hide();