diff options
author | Roman Birg <roman@cyngn.com> | 2016-08-10 12:42:07 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-08-12 07:32:40 -0700 |
commit | a0c695b831df29c47fa0fd32c232490c3d51ba2c (patch) | |
tree | eaa2bea35fe7330269c935f2516e84e5b620462e /src/com/android/settings/inputmethod | |
parent | b4bac9841a13c1ad747da3bc981993f0d6d67fd0 (diff) | |
download | packages_apps_Settings-a0c695b831df29c47fa0fd32c232490c3d51ba2c.zip packages_apps_Settings-a0c695b831df29c47fa0fd32c232490c3d51ba2c.tar.gz packages_apps_Settings-a0c695b831df29c47fa0fd32c232490c3d51ba2c.tar.bz2 |
Settings: move high touch sensitivity setting to Display
For devices that support this feature, it makes sense to place this
under display settings as most people wouldn't look under language.
Ticket: CYNGNOS-3250
Change-Id: Ib99f5e8c5f0f2bdae7b5b5f788a364a1d63aa146
Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'src/com/android/settings/inputmethod')
-rw-r--r-- | src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java b/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java index 1e7b35c..7c531da 100644 --- a/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java +++ b/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java @@ -93,7 +93,6 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment private static final String KEY_USER_DICTIONARY_SETTINGS = "key_user_dictionary_settings"; private static final String KEY_POINTER_SETTINGS_CATEGORY = "pointer_settings_category"; private static final String KEY_PREVIOUSLY_ENABLED_SUBTYPES = "previously_enabled_subtypes"; - private static final String KEY_HIGH_TOUCH_SENSITIVITY = "high_touch_sensitivity"; private static final String KEY_TOUCHSCREEN_HOVERING = "touchscreen_hovering"; private static final String KEY_TRACKPAD_SETTINGS = "gesture_pad_settings"; private static final String KEY_STYLUS_GESTURES = "stylus_gestures"; @@ -115,7 +114,6 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment private int mDefaultInputMethodSelectorVisibility = 0; private ListPreference mShowInputMethodSelectorPref; private SwitchPreference mStylusIconEnabled; - private SwitchPreference mHighTouchSensitivity; private SwitchPreference mTouchscreenHovering; private PreferenceCategory mKeyboardSettingsCategory; private PreferenceCategory mHardKeyboardCategory; @@ -203,7 +201,6 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment mStylusGestures = (PreferenceScreen) findPreference(KEY_STYLUS_GESTURES); mStylusIconEnabled = (SwitchPreference) findPreference(KEY_STYLUS_ICON_ENABLED); - mHighTouchSensitivity = (SwitchPreference) findPreference(KEY_HIGH_TOUCH_SENSITIVITY); mTouchscreenHovering = (SwitchPreference) findPreference(KEY_TOUCHSCREEN_HOVERING); @@ -213,15 +210,6 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment pointerSettingsCategory.removePreference(mStylusIconEnabled); } - if (!mHardware.isSupported( - CMHardwareManager.FEATURE_HIGH_TOUCH_SENSITIVITY)) { - pointerSettingsCategory.removePreference(mHighTouchSensitivity); - mHighTouchSensitivity = null; - } else { - mHighTouchSensitivity.setChecked( - mHardware.get(CMHardwareManager.FEATURE_HIGH_TOUCH_SENSITIVITY)); - } - if (!mHardware.isSupported(CMHardwareManager.FEATURE_TOUCH_HOVERING)) { pointerSettingsCategory.removePreference(mTouchscreenHovering); mTouchscreenHovering = null; @@ -433,12 +421,6 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment if (preference == mStylusIconEnabled) { Settings.System.putInt(getActivity().getContentResolver(), Settings.System.STYLUS_ICON_ENABLED, mStylusIconEnabled.isChecked() ? 1 : 0); - } else if (preference == mHighTouchSensitivity) { - boolean mHighTouchSensitivityEnable = mHighTouchSensitivity.isChecked(); - CMSettings.System.putInt(getActivity().getContentResolver(), - CMSettings.System.HIGH_TOUCH_SENSITIVITY_ENABLE, - mHighTouchSensitivityEnable ? 1 : 0); - return true; } else if (preference == mTouchscreenHovering) { boolean touchHoveringEnable = mTouchscreenHovering.isChecked(); CMSettings.Secure.putInt(getActivity().getContentResolver(), @@ -785,13 +767,6 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment public static void restore(Context context) { final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); final CMHardwareManager hardware = CMHardwareManager.getInstance(context); - if (hardware.isSupported(CMHardwareManager.FEATURE_HIGH_TOUCH_SENSITIVITY)) { - final boolean enabled = prefs.getBoolean(KEY_HIGH_TOUCH_SENSITIVITY, - hardware.get(CMHardwareManager.FEATURE_HIGH_TOUCH_SENSITIVITY)); - CMSettings.System.putInt(context.getContentResolver(), - CMSettings.System.HIGH_TOUCH_SENSITIVITY_ENABLE, - enabled ? 1 : 0); - } if (hardware.isSupported(CMHardwareManager.FEATURE_TOUCH_HOVERING)) { final boolean enabled = prefs.getBoolean(KEY_TOUCHSCREEN_HOVERING, hardware.get(CMHardwareManager.FEATURE_TOUCH_HOVERING)); |