summaryrefslogtreecommitdiff
path: root/src/org/lineageos
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/lineageos')
-rw-r--r--src/org/lineageos/lineageparts/input/ButtonSettings.java16
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);