diff --git a/res/values/strings.xml b/res/values/strings.xml
index a5142e6a075..0958720fc3b 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -5847,6 +5847,7 @@
slide to unlock, password, pattern, PIN
work challenge, work, profile
work profile, managed profile, unify, unification, work, profile
+ gesture
diff --git a/res/xml/display_settings.xml b/res/xml/display_settings.xml
index 6b5bda60b0b..cb1fac573d9 100644
--- a/res/xml/display_settings.xml
+++ b/res/xml/display_settings.xml
@@ -63,11 +63,6 @@
android:title="@string/camera_gesture_title"
android:summary="@string/camera_gesture_desc" />
-
-
-
+ android:summary="@string/doze_summary"
+ android:fragment="com.android.settings.gestures.GestureSettings" >
+
+
+ android:title="@string/gesture_preference_title"
+ settings:keywords="@string/keywords_gesture">
getXmlResourcesToIndex(Context context,
+ boolean enabled) {
+ ArrayList result =
+ new ArrayList();
+
+ SearchIndexableResource sir = new SearchIndexableResource(context);
+ sir.xmlResId = R.xml.gesture_settings;
+ result.add(sir);
+
+ return result;
+ }
+
+ @Override
+ public List getNonIndexableKeys(Context context) {
+ ArrayList result = new ArrayList();
+ if (!isCameraDoubleTapPowerGestureAvailable(context.getResources())) {
+ result.add(PREF_KEY_DOUBLE_TAP_POWER);
+ }
+ if (!isDozeAvailable(context)) {
+ result.add(PREF_KEY_PICK_UP_AND_NUDGE);
+ }
+ return result;
+ }
+ };
+
}
\ No newline at end of file