From d4d8aff50eb7bb8e85d6e02483f215aae1303758 Mon Sep 17 00:00:00 2001 From: sonora Date: Sun, 19 Feb 2012 10:42:30 +0100 Subject: [PATCH] better suppress wrong turn instructions, but still one small bug remains --- OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java b/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java index 1d31d2f359..5e7da39e11 100644 --- a/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java +++ b/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java @@ -386,11 +386,11 @@ public class RoutingHelper { } } } + if (suppressTurnPrompt == false && calculateRoute == false) { + voiceRouter.updateStatus(currentLocation, makeUturnWhenPossible); + } } } - if (suppressTurnPrompt == false) { - voiceRouter.updateStatus(currentLocation, makeUturnWhenPossible); - } lastFixedLocation = currentLocation; if(calculateRoute){ recalculateRouteInBackground(lastFixedLocation, finalLocation, currentGPXRoute);