OSDN Git Service

Settings: display: Fix search indexing of high touch sensitivity
authorZhao Wei Liew <zhaoweiliew@gmail.com>
Sat, 8 Oct 2016 04:58:56 +0000 (12:58 +0800)
committerZhao Wei Liew <zhaoweiliew@gmail.com>
Sat, 8 Oct 2016 13:20:07 +0000 (06:20 -0700)
Mark the feature as non-indexable if it is *unsupported*,
not if it is supported.

Change-Id: Ia1388044ec5944e1782f894ed0c6abe4b3e0c9e8

src/com/android/settings/DisplaySettings.java

index a434e97..47efd2f 100644 (file)
@@ -854,7 +854,7 @@ public class DisplaySettings extends SettingsPreferenceFragment implements
                     if (!isCameraGestureAvailable(context.getResources())) {
                         result.add(KEY_CAMERA_GESTURE);
                     }
-                    if (hardware.isSupported(CMHardwareManager.FEATURE_HIGH_TOUCH_SENSITIVITY)) {
+                    if (!hardware.isSupported(CMHardwareManager.FEATURE_HIGH_TOUCH_SENSITIVITY)) {
                         result.add(KEY_HIGH_TOUCH_SENSITIVITY);
                     }
                     return result;