Merge pull request #8285 from osmandapp/fix_lanes_widget

fix lanes #8273
This commit is contained in:
vshcherb 2020-01-21 16:44:02 +01:00 committed by GitHub
commit 7e05ff6acf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -605,14 +605,15 @@ public class TurnPathHelper {
} else {
turnResource = null;
}
} else if (TurnType.isSlightTurn(firstTurnType) && !TurnType.isSlightTurn(secondTurnType)
&& !TurnType.isSlightTurn(thirdTurnType)) {
} else if (firstTurnType != TurnType.C && TurnType.isSlightTurn(firstTurnType)
&& !TurnType.isSlightTurn(secondTurnType) && !TurnType.isSlightTurn(thirdTurnType)) {
if (TurnType.isLeftTurn(firstTurnType) && TurnType.isRightTurn(secondTurnType)
&& TurnType.isLeftTurn(thirdTurnType)){
turnResource = new TurnResource(secondTurnType, true, false, leftSide);
} else if (TurnType.isRightTurn(firstTurnType) && TurnType.isLeftTurn(secondTurnType)
&& TurnType.isRightTurn(thirdTurnType)) {
turnResource = new TurnResource(secondTurnType, true, false, leftSide); }
turnResource = new TurnResource(secondTurnType, true, false, leftSide);
}
} else if (firstTurnType == TurnType.C || thirdTurnType == TurnType.C) {
// get the small one
turnResource = new TurnResource(secondTurnType, true, false, leftSide);