From d55b96f2770f73b9d4097b68462d850bb947b262 Mon Sep 17 00:00:00 2001 From: sonora Date: Thu, 28 Jul 2016 10:14:44 +0200 Subject: [PATCH] fix small issue in voice router where destination would have been pre-announced twice --- OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java b/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java index baaf7256ca..f88ef7f950 100644 --- a/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java +++ b/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java @@ -468,7 +468,7 @@ public class VoiceRouter { } else { 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 playAndArriveAtDestination(nextNextInfo); }