From fdd143d2ff0baaf02fa8639121454d64e1d4e515 Mon Sep 17 00:00:00 2001 From: MadWasp79 Date: Wed, 9 Oct 2019 13:03:32 +0300 Subject: [PATCH] turn arrows fix #6416 --- OsmAnd/src/net/osmand/plus/views/TurnPathHelper.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/TurnPathHelper.java b/OsmAnd/src/net/osmand/plus/views/TurnPathHelper.java index 751df06e8d..cc07d7b216 100644 --- a/OsmAnd/src/net/osmand/plus/views/TurnPathHelper.java +++ b/OsmAnd/src/net/osmand/plus/views/TurnPathHelper.java @@ -578,7 +578,8 @@ public class TurnPathHelper { if (turnIndex == FIRST_TURN) { if (secondTurnType == 0) { turnResource = new TurnResource(firstTurnType, false, false, leftSide); - } else if (secondTurnType == TurnType.C || thirdTurnType == TurnType.C) { + } else if (secondTurnType == TurnType.C || thirdTurnType == TurnType.C + || secondTurnType == TurnType.TSLL || secondTurnType == TurnType.TSLR) { turnResource = new TurnResource(firstTurnType, true, false, leftSide); } else { if (firstTurnType == TurnType.TU || firstTurnType == TurnType.TRU) { @@ -591,12 +592,16 @@ public class TurnPathHelper { if (TurnType.isLeftTurn(firstTurnType) && TurnType.isLeftTurn(secondTurnType)) { if (TurnType.isSlightTurn(firstTurnType)) { turnResource = new TurnResource(secondTurnType, true, false, leftSide); + } else if (TurnType.isSlightTurn(secondTurnType)) { + turnResource = new TurnResource(secondTurnType, false, false, leftSide); } else { turnResource = null; } } else if (TurnType.isRightTurn(firstTurnType) && TurnType.isRightTurn(secondTurnType)) { if (TurnType.isSlightTurn(firstTurnType)) { turnResource = new TurnResource(secondTurnType, true, false, leftSide); + } else if (TurnType.isSlightTurn(secondTurnType)) { + turnResource = new TurnResource(secondTurnType, false, false, leftSide); } else { turnResource = null; }