fix small issue in voice router where destination would have been pre-announced twice

This commit is contained in:
sonora 2016-07-28 10:14:44 +02:00
parent a3a9b4219c
commit d55b96f277

View file

@ -468,7 +468,7 @@ public class VoiceRouter {
} else { } else {
playMakeTurn(currentSegment, next, null); playMakeTurn(currentSegment, next, null);
} }
if (nextNextInfo.distanceTo < TURN_IN_DISTANCE && isTargetPoint(nextNextInfo)) { if (nextNextInfo.distanceTo < TURN_IN_DISTANCE_END && isTargetPoint(nextNextInfo)) {
if (!next.getTurnType().goAhead()) { // Avoids isolated "and arrive.." prompt if (!next.getTurnType().goAhead()) { // Avoids isolated "and arrive.." prompt
playAndArriveAtDestination(nextNextInfo); playAndArriveAtDestination(nextNextInfo);
} }