try fix bug with orphaned "and arrive at your destination" prompt.

This commit is contained in:
sonora 2014-08-25 23:56:36 +02:00
parent 331da7fb20
commit a0f7a24d7e

View file

@ -442,9 +442,9 @@ public class VoiceRouter {
// do not play prepare for keep left/right
} else {
playPrepareTurn(currentSegment, next, dist);
}
playAndArriveAtDestination(repeat, nextInfo, currentSegment);
}
}
nextStatusAfter(STATUS_PREPARE);
// } else if (statusNotPassed(STATUS_LONG_PREPARE) && isDistanceLess(speed, dist, PREPARE_LONG_DISTANCE)){
} else if ((repeat || statusNotPassed(STATUS_LONG_PREPARE)) && (dist <= PREPARE_LONG_DISTANCE)) {