Rename setting
This commit is contained in:
parent
e35c70b5f1
commit
c54c06ac51
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> HIDE_INTERFACE_AFTER_TAP_ON_MAP = new BooleanPreference("hide_interface_after_tap_on_map", true).makeGlobal().cache();
|
||||
public final OsmandPreference<Boolean> MAP_EMPTY_STATE_ENABLED = new BooleanPreference("hide_interface_after_tap_on_map", 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.HIDE_INTERFACE_AFTER_TAP_ON_MAP, R.string.tap_on_map_to_hide_interface, R.string.tap_on_map_to_hide_interface_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));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -811,7 +811,7 @@ public class ContextMenuLayer extends OsmandMapLayer {
|
|||
|
||||
boolean processed = hideVisibleMenues();
|
||||
processed |= menu.onSingleTapOnMap();
|
||||
if (!processed && activity.getMyApplication().getSettings().HIDE_INTERFACE_AFTER_TAP_ON_MAP.get()) {
|
||||
if (!processed && activity.getMyApplication().getSettings().MAP_EMPTY_STATE_ENABLED.get()) {
|
||||
activity.getMapLayers().getMapControlsLayer().switchMapControlsVisibility(true);
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue