From c6968269a1c2b3b116ef71d6f1d01bce8b457a50 Mon Sep 17 00:00:00 2001 From: sonora Date: Tue, 24 May 2016 01:26:13 +0200 Subject: [PATCH] try more sophisticated fix for 2571 --- OsmAnd-java/src/net/osmand/router/RouteResultPreparation.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd-java/src/net/osmand/router/RouteResultPreparation.java b/OsmAnd-java/src/net/osmand/router/RouteResultPreparation.java index 396ecbcc86..8455021e6b 100644 --- a/OsmAnd-java/src/net/osmand/router/RouteResultPreparation.java +++ b/OsmAnd-java/src/net/osmand/router/RouteResultPreparation.java @@ -896,7 +896,8 @@ public class RouteResultPreparation { rs.keepRight = true; rs.leftLanes += lanes; } - rs.speak = rs.speak || (rsSpeakPriority <= speakPriority); + //if (rs.keepLeft && rs.keepRight) it probably means you have no action here to be announced here + rs.speak = rs.speak || ((rsSpeakPriority <= speakPriority) && !(rs.keepLeft && rs.keepRight)); } else { if (attachedOnTheRight) { rs.addRoadsOnRight++;