Fix possible wrong AND in comparison
This commit is contained in:
parent
ca60148431
commit
c479a91a07
1 changed files with 1 additions and 1 deletions
|
@ -569,7 +569,7 @@ public class RouteInfoWidgetsFactory {
|
|||
RouteInfoLayer ls = view.getLayerByClass(RouteInfoLayer.class);
|
||||
if (ls != null) {
|
||||
int di = ls.getDirectionInfo();
|
||||
if (di >= 0 && ls.isVisible() & di < routingHelper.getRouteDirections().size()) {
|
||||
if (di >= 0 && ls.isVisible() && di < routingHelper.getRouteDirections().size()) {
|
||||
RouteDirectionInfo next = routingHelper.getRouteDirections().get(di);
|
||||
if (next != null) {
|
||||
loclanes = next.getTurnType().getLanes();
|
||||
|
|
Loading…
Reference in a new issue