From 7072c00f5b8041224da563cc1956b6ed5ae0e440 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Wed, 18 Jul 2012 01:19:17 +0200 Subject: [PATCH] Fix grey/yellow issue --- OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java b/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java index a6ad78bfd3..afcdf1429a 100644 --- a/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java +++ b/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java @@ -137,9 +137,9 @@ public class VoiceRouter { } if (isDistanceLess(speed, dist, TURN_IN_DISTANCE_END)) { return 0; - } else if (isDistanceLess(speed, dist, PREPARE_DISTANCE_END)) { + } else if ( dist <= PREPARE_DISTANCE) { return 1; - } else if (isDistanceLess(speed, dist, PREPARE_LONG_DISTANCE_END)) { + } else if (dist <= PREPARE_LONG_DISTANCE) { return 2; } else { return -1;