Fix ConcurrentModificationException

This commit is contained in:
alex 2018-03-06 16:43:58 +02:00
parent b3850d4ce7
commit 5cce57107e

View file

@ -1438,7 +1438,8 @@ public class MapMarkersHelper {
}
public List<MapMarker> getActiveMarkers() {
List<MapMarker> activeMarkers = new ArrayList<>();
List<MapMarker> markers = new ArrayList<>(this.markers);
List<MapMarker> activeMarkers = new ArrayList<>(markers.size());
for (MapMarker marker : markers) {
if (!marker.history) {
activeMarkers.add(marker);