streamline code
This commit is contained in:
parent
8d2426a873
commit
5c7f684f20
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue