diff --git a/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java b/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java index 7f2b6d3032..f60e4f7ea9 100644 --- a/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java +++ b/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java @@ -978,7 +978,7 @@ public class RoutingHelper { if (rs != null) { streetName.text = getRouteSegmentStreetName(rs, false); if (Algorithms.isEmpty(streetName.text)) { - isSet = Algorithms.isEmpty(getRouteSegmentStreetName(rs, true)); + isSet = !Algorithms.isEmpty(getRouteSegmentStreetName(rs, true)); } else { isSet = true; } @@ -991,11 +991,6 @@ public class RoutingHelper { RouteSegmentResult rs = getNextStreetSegmentResult(); if (rs != null) { streetName.text = getRouteSegmentStreetName(rs, false); - if (Algorithms.isEmpty(streetName.text)) { - isSet = Algorithms.isEmpty(getRouteSegmentStreetName(rs, true)); - } else { - isSet = true; - } streetName.turnType = TurnType.valueOf(TurnType.C, false); streetName.shieldObject = rs.getObject(); }