isDeviatedFromRoute() detection for street name display

This commit is contained in:
sonora 2016-07-24 23:03:56 +02:00
parent 8c33f5502d
commit e15a9bb3a2

View file

@ -293,12 +293,11 @@ public class MapInfoWidgetsFactory {
}
public boolean updateInfo(DrawSettings d) {
String text = null;
TurnType[] type = new TurnType[1];
boolean showNextTurn = false;
if (routingHelper != null && routingHelper.isRouteCalculated()) {
if (routingHelper != null && routingHelper.isRouteCalculated() && !routingHelper.isDeviatedFromRoute()) {
if (routingHelper.isFollowingMode()) {
if (settings.SHOW_STREET_NAME.get()) {
text = routingHelper.getCurrentName(type);