Merge pull request #4497 from osmandapp/fix_tts_waypoints

Fix #4483
This commit is contained in:
vshcherb 2017-10-01 11:33:36 +02:00 committed by GitHub
commit c9f7621592

View file

@ -339,6 +339,7 @@ public class WaypointHelper {
pointsProgress.set(type, kIterator);
while (kIterator < lp.size()) {
LocationPointWrapper lwp = lp.get(kIterator);
if (lwp.announce) {
if (route.getDistanceToPoint(lwp.routeIndex) > LONG_ANNOUNCE_RADIUS * 2) {
break;
}
@ -359,6 +360,7 @@ public class WaypointHelper {
locationPointsStates.put(point, ANNOUNCED_ONCE);
approachPoints.add(lwp);
}
}
kIterator++;
}
if (!announcePoints.isEmpty()) {