From a539aae277af71aa2d01429a60a4b1bbc9294c87 Mon Sep 17 00:00:00 2001 From: Alexander Sytnyk Date: Mon, 2 Oct 2017 12:58:15 +0300 Subject: [PATCH] Remove unnecessary variable --- OsmAnd/src/net/osmand/plus/views/MapMarkersLayer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/MapMarkersLayer.java b/OsmAnd/src/net/osmand/plus/views/MapMarkersLayer.java index d4132bc769..bc48cfbe6a 100644 --- a/OsmAnd/src/net/osmand/plus/views/MapMarkersLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/MapMarkersLayer.java @@ -210,7 +210,6 @@ public class MapMarkersLayer extends OsmandMapLayer implements IContextMenuProvi @Override public void onPrepareBufferImage(Canvas canvas, RotatedTileBox tileBox, DrawSettings nightMode) { - OsmandSettings settings = map.getMyApplication().getSettings(); Location myLoc = map.getMyApplication().getLocationProvider().getLastStaleKnownLocation(); MapMarkersHelper markersHelper = map.getMyApplication().getMapMarkersHelper(); List activeMapMarkers = markersHelper.getMapMarkers(); @@ -237,7 +236,7 @@ public class MapMarkersLayer extends OsmandMapLayer implements IContextMenuProvi canvas.drawPath(path, paint); } - if (settings.SHOW_LINES_TO_FIRST_MARKERS.get() && myLoc != null) { + if (markersHelper.isStartFromMyLocation() && myLoc != null) { lineAttrs.updatePaints(view, nightMode, tileBox); textAttrs.updatePaints(view, nightMode, tileBox); textAttrs.paint.setStyle(Paint.Style.FILL);