Fix #9946 Current road ref not showing during navigation

This commit is contained in:
Dima-1 2020-12-30 14:06:06 +02:00
parent d2b0b3895b
commit 72a67ed8a5

View file

@ -43,7 +43,7 @@ public class CurrentStreetName {
String rf = n.directionInfo.getRef();
String dn = n.directionInfo.getDestinationName();
isSet = !(Algorithms.isEmpty(nm) && Algorithms.isEmpty(rf) && Algorithms.isEmpty(dn));
streetName.text = RoutingHelperUtils.formatStreetName(nm, null, dn, "»");
streetName.text = RoutingHelperUtils.formatStreetName(nm, rf, dn, "»");
streetName.turnType = n.directionInfo.getTurnType();
streetName.shieldObject = n.directionInfo.getRouteDataObject();
if (streetName.turnType == null) {
@ -62,7 +62,8 @@ public class CurrentStreetName {
if (rs != null) {
streetName.text = getRouteSegmentStreetName(routingHelper, rs, false);
if (Algorithms.isEmpty(streetName.text)) {
isSet = !Algorithms.isEmpty(getRouteSegmentStreetName(routingHelper, rs, true));
streetName.text = getRouteSegmentStreetName(routingHelper, rs, true);
isSet = !Algorithms.isEmpty(streetName.text);
} else {
isSet = true;
}