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();
|
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.CAR, true);
|
||||||
SHOW_STREET_NAME.setModeDefaultValue(ApplicationMode.BICYCLE, false);
|
SHOW_STREET_NAME.setModeDefaultValue(ApplicationMode.BICYCLE, false);
|
||||||
SHOW_STREET_NAME.setModeDefaultValue(ApplicationMode.PEDESTRIAN, false);
|
SHOW_STREET_NAME.setModeDefaultValue(ApplicationMode.PEDESTRIAN, false);
|
||||||
|
|
|
@ -322,8 +322,7 @@ public class MapInfoWidgetsFactory {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (settings.getApplicationMode() != ApplicationMode.DEFAULT &&
|
} else if (map.getMapViewTrackingUtilities().isMapLinkedToLocation() &&
|
||||||
map.getMapViewTrackingUtilities().isMapLinkedToLocation() &&
|
|
||||||
settings.SHOW_STREET_NAME.get()) {
|
settings.SHOW_STREET_NAME.get()) {
|
||||||
RouteDataObject rt = locationProvider.getLastKnownRouteSegment();
|
RouteDataObject rt = locationProvider.getLastKnownRouteSegment();
|
||||||
if (rt != null) {
|
if (rt != null) {
|
||||||
|
|
Loading…
Reference in a new issue