From 74c42aedebbadcaa2b4e1c81928b345753c856b5 Mon Sep 17 00:00:00 2001 From: sonora Date: Sun, 6 Sep 2015 08:21:21 +0200 Subject: [PATCH] fix bug with isolated "and arrive at your detination" --- OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java b/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java index 4beadb962e..d1623ed66a 100644 --- a/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java +++ b/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java @@ -450,7 +450,9 @@ public class VoiceRouter { playMakeTurn(currentSegment, next, null); } if(next.distance < TURN_IN_DISTANCE && isTargetPoint(nextNextInfo)) { - andSpeakArriveAtPoint(nextNextInfo); + if(!next.getTurnType().goAhead()) { //avoids isolated "and arrice.." + andSpeakArriveAtPoint(nextNextInfo); + } } nextStatusAfter(STATUS_TURN); } else if ((repeat || statusNotPassed(STATUS_TURN_IN)) && isDistanceLess(speed, dist, TURN_IN_DISTANCE, 0f)) {