From 90292541ef92f067f3e143549321820f629e8b39 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Thu, 17 Sep 2020 14:34:33 +0300 Subject: [PATCH] Show context menu with coordinates on long tap --- OsmAnd/src/net/osmand/plus/views/layers/ContextMenuLayer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/layers/ContextMenuLayer.java b/OsmAnd/src/net/osmand/plus/views/layers/ContextMenuLayer.java index 4567770e9c..7a8690fe2d 100644 --- a/OsmAnd/src/net/osmand/plus/views/layers/ContextMenuLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/layers/ContextMenuLayer.java @@ -323,7 +323,9 @@ public class ContextMenuLayer extends OsmandMapLayer { return false; } - showContextMenu(point, tileBox, true); + LatLon pointLatLon = tileBox.getLatLonFromPixel(point.x, point.y); + menu.show(pointLatLon, null, null); + view.refreshMap(); return true; }