Fix setting name
This commit is contained in:
parent
9698478714
commit
438f1cf93d
3 changed files with 3 additions and 3 deletions
|
@ -902,7 +902,7 @@ public class OsmandSettings {
|
|||
public final OsmandPreference<Boolean> DO_NOT_USE_ANIMATIONS = new BooleanPreference("do_not_use_animations", false).makeGlobal().cache();
|
||||
public final OsmandPreference<Boolean> DO_NOT_SEND_ANONYMOUS_APP_USAGE = new BooleanPreference("do_not_send_anonymous_app_usage", false).makeGlobal().cache();
|
||||
|
||||
public final OsmandPreference<Boolean> MAP_EMPTY_STATE_ENABLED = new BooleanPreference("map_empty_state_enabled", true).makeGlobal().cache();
|
||||
public final OsmandPreference<Boolean> MAP_EMPTY_STATE_ALLOWED = new BooleanPreference("map_empty_state_allowed", true).makeGlobal().cache();
|
||||
|
||||
|
||||
public final CommonPreference<Float> TEXT_SCALE = new FloatPreference("text_scale", 1f).makeProfile().cache();
|
||||
|
|
|
@ -496,7 +496,7 @@ public class SettingsGeneralActivity extends SettingsBaseActivity implements OnR
|
|||
misc.addPreference(createCheckBoxPreference(settings.DO_NOT_SHOW_STARTUP_MESSAGES, R.string.do_not_show_startup_messages, R.string.do_not_show_startup_messages_desc));
|
||||
misc.addPreference(createCheckBoxPreference(settings.DO_NOT_USE_ANIMATIONS, R.string.do_not_use_animations, R.string.do_not_use_animations_descr));
|
||||
misc.addPreference(createCheckBoxPreference(settings.USE_MAGNETIC_FIELD_SENSOR_COMPASS, R.string.use_magnetic_sensor, R.string.use_magnetic_sensor_descr));
|
||||
misc.addPreference(createCheckBoxPreference(settings.MAP_EMPTY_STATE_ENABLED, R.string.tap_on_map_to_hide_interface, R.string.tap_on_map_to_hide_interface_descr));
|
||||
misc.addPreference(createCheckBoxPreference(settings.MAP_EMPTY_STATE_ALLOWED, R.string.tap_on_map_to_hide_interface, R.string.tap_on_map_to_hide_interface_descr));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -811,7 +811,7 @@ public class ContextMenuLayer extends OsmandMapLayer {
|
|||
|
||||
boolean processed = hideVisibleMenues();
|
||||
processed |= menu.onSingleTapOnMap();
|
||||
if (!processed && activity.getMyApplication().getSettings().MAP_EMPTY_STATE_ENABLED.get()) {
|
||||
if (!processed && activity.getMyApplication().getSettings().MAP_EMPTY_STATE_ALLOWED.get()) {
|
||||
activity.getMapLayers().getMapControlsLayer().switchMapControlsVisibility(true);
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue