From d7f6dec79450fc4011d4bf7cac94d591b5a06fba Mon Sep 17 00:00:00 2001 From: sonora Date: Sat, 5 Sep 2015 11:48:40 +0200 Subject: [PATCH] small fix --- 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 5974e13f90..3dd033b726 100644 --- a/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java +++ b/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java @@ -436,7 +436,7 @@ public class VoiceRouter { if (currentStatus == STATUS_UNKNOWN) { // Tell goAhead distance after (1) route calculation if no other prompt is due, or (2) after a turn if next turn is more than PREPARE_LONG_DISTANCE away //if (!isDistanceLess(speed, dist, TURN_IN_DISTANCE * 1.3, 0f)) { - if (playGoAheadDist == -1 || !isDistanceLess(speed, dist, PREPARE_LONG_DISTANCE + 300, 0f)) { + if ((playGoAheadDist = -1 && !isDistanceLess(speed, dist, TURN_IN_DISTANCE * 1.3, 0f)) || !isDistanceLess(speed, dist, PREPARE_LONG_DISTANCE + 300, 0f)) { playGoAheadDist = dist - 80; } // Put voice router in appropriate status