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 /src | |
parent | db17d06a3b6b94c641f3b8fc46ad2d0b9ae0ed76 (diff) |
Revert "LineageParts: Add volume panel left/right setting"HEADlineage-18.1
This reverts commit d72529309a4b6ebe58ecbdb9ca01b310e209f6ff.
Change-Id: Ie6fb8bca5373c525e6d893edf3631caf7882a7b4
Diffstat (limited to 'src')
-rw-r--r-- | src/org/lineageos/lineageparts/input/ButtonSettings.java | 16 |
1 files changed, 0 insertions, 16 deletions
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); |