diff options
author | alk3pInjection <webmaster@raspii.tech> | 2021-09-05 09:52:30 +0800 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2021-09-27 21:17:05 +0800 |
commit | 20042f6f16c6a837bec9f91470f757633cb58b95 (patch) | |
tree | 09650d8e50088d5ee6b2cd6dbbd7a7aa68315ba3 | |
parent | db17d06a3b6b94c641f3b8fc46ad2d0b9ae0ed76 (diff) |
Revert "LineageParts: Add volume panel left/right setting"HEADlineage-18.1
This reverts commit d72529309a4b6ebe58ecbdb9ca01b310e209f6ff.
Change-Id: Ie6fb8bca5373c525e6d893edf3631caf7882a7b4
-rw-r--r-- | res/values/strings.xml | 2 | ||||
-rw-r--r-- | res/xml/button_settings.xml | 5 | ||||
-rw-r--r-- | src/org/lineageos/lineageparts/input/ButtonSettings.java | 16 |
3 files changed, 0 insertions, 23 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml index 34f6d37..f4147a4 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -206,8 +206,6 @@ <string name="power_end_call_summary">End the current call by pressing the power button</string> <string name="swap_volume_buttons_title">Reorient</string> <string name="swap_volume_buttons_summary">Swap volume buttons when the screen is rotated</string> - <string name="volume_panel_on_left_title">Show panel on left</string> - <string name="volume_panel_on_left_summary">Display volume panel on the left side of the screen</string> <string name="button_wake_title">Wake device</string> <string name="volume_answer_call_title">Answer call</string> <string name="volume_answer_call_summary">Answer incoming calls by pressing the volume buttons</string> diff --git a/res/xml/button_settings.xml b/res/xml/button_settings.xml index 92f5f5f..5eb9762 100644 --- a/res/xml/button_settings.xml +++ b/res/xml/button_settings.xml @@ -317,11 +317,6 @@ android:key="swap_volume_buttons" android:title="@string/swap_volume_buttons_title" android:summary="@string/swap_volume_buttons_summary" /> - - <SwitchPreference - android:key="volume_panel_on_left" - android:title="@string/volume_panel_on_left_title" - android:summary="@string/volume_panel_on_left_summary" /> </PreferenceCategory> <PreferenceCategory diff --git a/src/org/lineageos/lineageparts/input/ButtonSettings.java b/src/org/lineageos/lineageparts/input/ButtonSettings.java index efbe161..f7aa3f2 100644 --- a/src/org/lineageos/lineageparts/input/ButtonSettings.java +++ b/src/org/lineageos/lineageparts/input/ButtonSettings.java @@ -85,7 +85,6 @@ public class ButtonSettings extends SettingsPreferenceFragment private static final String KEY_APP_SWITCH_WAKE_SCREEN = "app_switch_wake_screen"; private static final String KEY_VOLUME_KEY_CURSOR_CONTROL = "volume_key_cursor_control"; private static final String KEY_SWAP_VOLUME_BUTTONS = "swap_volume_buttons"; - private static final String KEY_VOLUME_PANEL_ON_LEFT = "volume_panel_on_left"; private static final String KEY_VOLUME_WAKE_SCREEN = "volume_wake_screen"; private static final String KEY_VOLUME_ANSWER_CALL = "volume_answer_call"; private static final String KEY_DISABLE_NAV_KEYS = "disable_nav_keys"; @@ -132,7 +131,6 @@ public class ButtonSettings extends SettingsPreferenceFragment private SwitchPreference mVolumeWakeScreen; private SwitchPreference mVolumeMusicControls; private SwitchPreference mSwapVolumeButtons; - private SwitchPreference mVolumePanelOnLeft; private SwitchPreference mDisableNavigationKeys; private SwitchPreference mNavigationArrowKeys; private ListPreference mNavigationBackLongPressAction; @@ -414,14 +412,6 @@ public class ButtonSettings extends SettingsPreferenceFragment if (mSwapVolumeButtons != null) { mSwapVolumeButtons.setChecked(swapVolumeKeys > 0); } - - final boolean volumePanelOnLeft = LineageSettings.Secure.getIntForUser( - getContentResolver(), LineageSettings.Secure.VOLUME_PANEL_ON_LEFT, 0, - UserHandle.USER_CURRENT) != 0; - mVolumePanelOnLeft = prefScreen.findPreference(KEY_VOLUME_PANEL_ON_LEFT); - if (mVolumePanelOnLeft != null) { - mVolumePanelOnLeft.setChecked(volumePanelOnLeft); - } } if (!hasVolumeKeys || volumeCategory.getPreferenceCount() == 0) { prefScreen.removePreference(volumeCategory); @@ -806,11 +796,6 @@ public class ButtonSettings extends SettingsPreferenceFragment } LineageSettings.System.putInt(getActivity().getContentResolver(), LineageSettings.System.SWAP_VOLUME_KEYS_ON_ROTATION, value); - } else if (preference == mVolumePanelOnLeft) { - LineageSettings.Secure.putIntForUser(getActivity().getContentResolver(), - LineageSettings.Secure.VOLUME_PANEL_ON_LEFT, - mVolumePanelOnLeft.isChecked() ? 1 : 0, UserHandle.USER_CURRENT); - return true; } else if (preference == mDisableNavigationKeys) { mDisableNavigationKeys.setEnabled(false); mNavigationPreferencesCat.setEnabled(false); @@ -922,7 +907,6 @@ public class ButtonSettings extends SettingsPreferenceFragment result.add(KEY_VOLUME_ANSWER_CALL); result.add(KEY_VOLUME_KEY_CURSOR_CONTROL); result.add(KEY_VOLUME_MUSIC_CONTROLS); - result.add(KEY_VOLUME_PANEL_ON_LEFT); result.add(KEY_VOLUME_WAKE_SCREEN); } else if (!DeviceUtils.canWakeUsingVolumeKeys(context)) { result.add(KEY_VOLUME_WAKE_SCREEN); |