fix order of map marker history entries
This commit is contained in:
parent
09eb260bd9
commit
57cb3ae611
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue