diff --git a/OsmAnd/src/net/osmand/plus/OsmandSettings.java b/OsmAnd/src/net/osmand/plus/OsmandSettings.java index 80babd55c2..c9b2ba22d3 100644 --- a/OsmAnd/src/net/osmand/plus/OsmandSettings.java +++ b/OsmAnd/src/net/osmand/plus/OsmandSettings.java @@ -817,14 +817,12 @@ public class OsmandSettings { public final CommonPreference DISABLE_COMPLEX_ROUTING = new BooleanPreference("disable_complex_routing", false).makeGlobal(); public final OsmandPreference SHOW_TRAFFIC_WARNINGS = new BooleanPreference("show_traffic_warnings", true).makeProfile().cache(); + public final CommonPreference SHOW_PEDESTRIAN = new BooleanPreference("show_pedestrian", true).makeProfile().cache(); public final OsmandPreference SHOW_CAMERAS = new BooleanPreference("show_cameras", true).makeProfile().cache(); public final CommonPreference SHOW_LANES = new BooleanPreference("show_lanes", true).makeProfile().cache(); { SHOW_LANES.setModeDefaultValue(ApplicationMode.DEFAULT, false); } - public final CommonPreference SHOW_PEDESTRIAN = new BooleanPreference("show_pedastrian", true).makeProfile().cache(); - public final CommonPreference SHOW_RAILWAYS = new BooleanPreference("show_railways", true).makeProfile().cache(); - public final OsmandPreference SPEAK_TRAFFIC_WARNINGS = new BooleanPreference("speak_traffic_warnings", true).makeProfile().cache(); public final OsmandPreference SPEAK_STREET_NAMES = new BooleanPreference("speak_street_names", true).makeProfile().cache(); public final OsmandPreference SPEAK_SPEED_CAMERA = new BooleanPreference("speak_cameras", true).makeProfile().cache(); diff --git a/OsmAnd/src/net/osmand/plus/activities/SettingsNavigationActivity.java b/OsmAnd/src/net/osmand/plus/activities/SettingsNavigationActivity.java index 116c9bb9a5..8b8c2aff2b 100644 --- a/OsmAnd/src/net/osmand/plus/activities/SettingsNavigationActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/SettingsNavigationActivity.java @@ -328,10 +328,9 @@ public class SettingsNavigationActivity extends SettingsBaseActivity { showBooleanSettings(vals, bls, preference.getTitle()); return true; } else if (preference == showAlarms) { - showBooleanSettings(new String[] { getString(R.string.show_traffic_warnings), getString(R.string.show_cameras), - getString(R.string.show_lanes) ,getString(R.string.show_pedestrian_warnings) , - getString(R.string.show_railway_warnings) }, new OsmandPreference[] { settings.SHOW_TRAFFIC_WARNINGS, - settings.SHOW_CAMERAS, settings.SHOW_LANES, settings.SHOW_PEDESTRIAN, settings.SHOW_RAILWAYS }, preference.getTitle()); + showBooleanSettings(new String[] { getString(R.string.show_traffic_warnings), getString(R.string.show_pedestrian_warnings), + getString(R.string.show_cameras), getString(R.string.show_lanes) }, new OsmandPreference[] { settings.SHOW_TRAFFIC_WARNINGS, + settings.SHOW_PEDESTRIAN, settings.SHOW_CAMERAS, settings.SHOW_LANES }, preference.getTitle()); return true; } else if (preference == speakAlarms) { showBooleanSettings(new String[] { getString(R.string.speak_street_names), getString(R.string.speak_traffic_warnings),