Fix ConcurrentModificationException
This commit is contained in:
parent
b3850d4ce7
commit
5cce57107e
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue