diff --git a/OsmAnd/src/net/osmand/plus/MapMarkersHelper.java b/OsmAnd/src/net/osmand/plus/MapMarkersHelper.java index c2c5e77418..ecd0bc5cfa 100644 --- a/OsmAnd/src/net/osmand/plus/MapMarkersHelper.java +++ b/OsmAnd/src/net/osmand/plus/MapMarkersHelper.java @@ -1438,7 +1438,8 @@ public class MapMarkersHelper { } public List getActiveMarkers() { - List activeMarkers = new ArrayList<>(); + List markers = new ArrayList<>(this.markers); + List activeMarkers = new ArrayList<>(markers.size()); for (MapMarker marker : markers) { if (!marker.history) { activeMarkers.add(marker);