diff --git a/OsmAnd/src/net/osmand/plus/GPXUtilities.java b/OsmAnd/src/net/osmand/plus/GPXUtilities.java index de861a4d88..f0021ef8c3 100644 --- a/OsmAnd/src/net/osmand/plus/GPXUtilities.java +++ b/OsmAnd/src/net/osmand/plus/GPXUtilities.java @@ -758,7 +758,7 @@ public class GPXUtilities { private TrkSegment generalSegment; public List getPoints() { - return new ArrayList<>(points); + return Collections.unmodifiableList(points); } public boolean isPointsEmpty() {