Waypoints announcement initialization fix

This commit is contained in:
Igor B. Poretsky 2017-01-16 19:04:57 +03:00
parent 5fb0bbd9f9
commit be1296db11

View file

@ -443,7 +443,7 @@ public class WaypointHelper {
} }
public void clearAllVisiblePoints() { public void clearAllVisiblePoints() {
//this.locationPointsStates.clear(); this.locationPointsStates.clear();
this.locationPoints = new ArrayList<List<LocationPointWrapper>>(); this.locationPoints = new ArrayList<List<LocationPointWrapper>>();
} }
@ -532,7 +532,7 @@ public class WaypointHelper {
protected synchronized void setLocationPoints(List<List<LocationPointWrapper>> locationPoints, RouteCalculationResult route) { protected synchronized void setLocationPoints(List<List<LocationPointWrapper>> locationPoints, RouteCalculationResult route) {
this.locationPoints = locationPoints; this.locationPoints = locationPoints;
//this.locationPointsStates.clear(); this.locationPointsStates.clear();
TIntArrayList list = new TIntArrayList(locationPoints.size()); TIntArrayList list = new TIntArrayList(locationPoints.size());
list.fill(0, locationPoints.size(), 0); list.fill(0, locationPoints.size(), 0);
this.pointsProgress = list; this.pointsProgress = list;