fix order of map marker history entries

This commit is contained in:
sonora 2016-02-28 15:23:42 +01:00
parent 09eb260bd9
commit 57cb3ae611
2 changed files with 2 additions and 2 deletions

View file

@ -256,7 +256,7 @@ public class MapMarkersHelper {
public void removeActiveMarkers() {
cancelAddressRequests();
List<MapMarker> markers = new ArrayList<>(mapMarkers.size());
for (int i = 0; i<= mapMarkers.size() - 1; i++) {
for (int i = mapMarkers.size() - 1; i>= 0; i--) {
MapMarker marker = mapMarkers.get(i);
addMapMarkerHistory(marker);
}

View file

@ -343,7 +343,7 @@ public class DashboardOnMap implements ObservableScrollViewCallbacks, DynamicLis
}
}
for (int i = deletedMarkers.size() - 1; i >= 0; i--) {
for (int i = 0; i <= deletedMarkers.size() - 1; i++) {
markersHistory.add(0, (MapMarker) deletedMarkers.get(i));
}
deletedMarkers.clear();