diff --git a/app/src/common/shared/com/igalia/wolvic/ui/widgets/settings/DisplayOptionsView.java b/app/src/common/shared/com/igalia/wolvic/ui/widgets/settings/DisplayOptionsView.java index 216ef146ff..49d77250c8 100644 --- a/app/src/common/shared/com/igalia/wolvic/ui/widgets/settings/DisplayOptionsView.java +++ b/app/src/common/shared/com/igalia/wolvic/ui/widgets/settings/DisplayOptionsView.java @@ -100,9 +100,6 @@ protected void updateUI() { mBinding.latinAutoCompleteSwitch.setOnCheckedChangeListener(mLatinAutoCompleteListener); setLatinAutoComplete(SettingsStore.getInstance(getContext()).isLatinAutoCompleteEnabled(), false); - mBinding.headLockSwitch.setOnCheckedChangeListener(mHeadLockListener); - setHeadLock(SettingsStore.getInstance(getContext()).isHeadLockEnabled(), false); - mDefaultHomepageUrl = getContext().getString(R.string.HOMEPAGE_URL); mBinding.homepageEdit.setHint1(getContext().getString(R.string.homepage_hint, getContext().getString(R.string.app_name))); @@ -188,10 +185,6 @@ public boolean isEditing() { setLatinAutoComplete(enabled, true); }; - private SwitchSetting.OnCheckedChangeListener mHeadLockListener = (compoundButton, value, doApply) -> { - setHeadLock(value, true); - }; - private OnClickListener mHomepageListener = (view) -> { if (!mBinding.homepageEdit.getFirstText().isEmpty()) { setHomepage(mBinding.homepageEdit.getFirstText()); @@ -265,7 +258,6 @@ public boolean isEditing() { setHomepage(mDefaultHomepageUrl); setAutoplay(SettingsStore.AUTOPLAY_ENABLED, true); setCurvedDisplay(false, true); - setHeadLock(SettingsStore.HEAD_LOCK_DEFAULT, true); setSoundEffect(SettingsStore.AUDIO_ENABLED, true); setLatinAutoComplete(SettingsStore.LATIN_AUTO_COMPLETE_ENABLED, true); setCenterWindows(SettingsStore.CENTER_WINDOWS_DEFAULT, true); @@ -334,17 +326,6 @@ private void setLatinAutoComplete(boolean value, boolean doApply) { } } - private void setHeadLock(boolean value, boolean doApply) { - mBinding.headLockSwitch.setOnCheckedChangeListener(null); - mBinding.headLockSwitch.setValue(value, false); - mBinding.headLockSwitch.setOnCheckedChangeListener(mHeadLockListener); - - SettingsStore settingsStore = SettingsStore.getInstance(getContext()); - if (doApply) { - settingsStore.setHeadLockEnabled(value); - } - } - private void setSoundEffect(boolean value, boolean doApply) { mBinding.soundEffectSwitch.setOnCheckedChangeListener(null); mBinding.soundEffectSwitch.setValue(value, false); diff --git a/app/src/main/res/layout/options_display.xml b/app/src/main/res/layout/options_display.xml index ab6815f07a..960adca89b 100644 --- a/app/src/main/res/layout/options_display.xml +++ b/app/src/main/res/layout/options_display.xml @@ -134,12 +134,6 @@ android:layout_height="wrap_content" app:description="@string/developer_options_center_windows" /> - -