From dd868bda4cbb93b3f7eae49dd0070aa1f382a50d Mon Sep 17 00:00:00 2001 From: Chumva Date: Mon, 12 Mar 2018 13:05:52 +0200 Subject: [PATCH] refactored some code --- 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 2a958af750..40b552df90 100644 --- a/OsmAnd/src/net/osmand/plus/views/MapMarkersLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/MapMarkersLayer.java @@ -578,8 +578,7 @@ public class MapMarkersLayer extends OsmandMapLayer implements IContextMenuProvi if (o instanceof MapMarker) { return ((MapMarker) o).point; } else if (o instanceof Amenity && amenities.contains(o)) { - Amenity amenity = (Amenity) o; - return amenity.getLocation(); + return ((Amenity) o).getLocation(); } return null; }