From 4ab09243e3a42cf4a77252dacd039681c5e78d1b Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Sat, 2 Dec 2017 12:52:18 +0000 Subject: [PATCH] Settings: Add proximity check on wake preference Splitted from commit 5aa2f34, adapted to the Lineage SDK and squashed with commits c6dc688 and 19105ab. Change-Id: I7516c833ff39de6bdb36c815a5292606cbaa0533 --- res/values/cm_strings.xml | 4 ++++ res/xml/display_settings.xml | 8 ++++++++ src/com/android/settings/DisplaySettings.java | 5 +++++ 3 files changed, 17 insertions(+) diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml index a82ceba52e9..c20fdfae643 100644 --- a/res/values/cm_strings.xml +++ b/res/values/cm_strings.xml @@ -78,6 +78,10 @@ Scramble layout Scramble PIN layout when unlocking device + + Prevent accidental wake-up + Check the proximity sensor prior to waking up screen + Touchscreen gestures Perform various touchscreen gestures for quick actions diff --git a/res/xml/display_settings.xml b/res/xml/display_settings.xml index 055e45e7eb3..d513c9673e0 100644 --- a/res/xml/display_settings.xml +++ b/res/xml/display_settings.xml @@ -203,6 +203,14 @@ android:title="@string/tap_to_wake" android:summary="@string/tap_to_wake_summary"/> + + +