From f2c1d688010cb3063d03c7d0828cf511ab240a6e Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Wed, 11 Oct 2017 18:17:44 +0300 Subject: [PATCH] Do not reorder markers when opening context menu --- OsmAnd/src/net/osmand/plus/views/MapMarkersLayer.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/MapMarkersLayer.java b/OsmAnd/src/net/osmand/plus/views/MapMarkersLayer.java index 0137849074..87fff84beb 100644 --- a/OsmAnd/src/net/osmand/plus/views/MapMarkersLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/MapMarkersLayer.java @@ -461,10 +461,6 @@ public class MapMarkersLayer extends OsmandMapLayer implements IContextMenuProvi @Override public void setSelectedObject(Object o) { - if (o instanceof MapMarker) { - map.getMyApplication().getMapMarkersHelper().moveMarkerToTop((MapMarker) o); - map.getMyApplication().getSettings().MAP_MARKERS_ORDER_BY_MODE.set(OsmandSettings.MapMarkersOrderByMode.CUSTOM); - } } @Override