streamline code

This commit is contained in:
sonora 2016-07-25 09:40:15 +02:00
parent 8d2426a873
commit 5c7f684f20
2 changed files with 2 additions and 2 deletions

View file

@ -2579,6 +2579,7 @@ public class OsmandSettings {
new BooleanPreference("show_street_name", false).makeProfile();
{
SHOW_STREET_NAME.setModeDefaultValue(ApplicationMode.DEFAULT, false);
SHOW_STREET_NAME.setModeDefaultValue(ApplicationMode.CAR, true);
SHOW_STREET_NAME.setModeDefaultValue(ApplicationMode.BICYCLE, false);
SHOW_STREET_NAME.setModeDefaultValue(ApplicationMode.PEDESTRIAN, false);

View file

@ -322,8 +322,7 @@ public class MapInfoWidgetsFactory {
}
}
} else if (settings.getApplicationMode() != ApplicationMode.DEFAULT &&
map.getMapViewTrackingUtilities().isMapLinkedToLocation() &&
} else if (map.getMapViewTrackingUtilities().isMapLinkedToLocation() &&
settings.SHOW_STREET_NAME.get()) {
RouteDataObject rt = locationProvider.getLastKnownRouteSegment();
if (rt != null) {