From e0c9d3c47425608d57e47845c1ac0a594b021410 Mon Sep 17 00:00:00 2001 From: Alex Salo Date: Tue, 2 Apr 2019 14:24:07 -0700 Subject: [PATCH] Update adaptive sleep setting with the latest copy Bug: 129352433 Change-Id: I3c9594f9ed49208ef1d7bbc33e8083a0c733b1f8 Test: manually confirmed it works and looks correct (cherry picked from commit fdeb07c05bf44e428ecbd5c315627735cb7afc05) --- res/drawable/ic_privacy_shield_24dp.xml | 25 +++++++++++++++++++ res/values/strings.xml | 8 +++--- res/xml/adaptive_sleep_detail.xml | 1 + .../display/AdaptiveSleepSettings.java | 7 ++++-- 4 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 res/drawable/ic_privacy_shield_24dp.xml diff --git a/res/drawable/ic_privacy_shield_24dp.xml b/res/drawable/ic_privacy_shield_24dp.xml new file mode 100644 index 00000000000..6bb69c0a387 --- /dev/null +++ b/res/drawable/ic_privacy_shield_24dp.xml @@ -0,0 +1,25 @@ + + + + + diff --git a/res/values/strings.xml b/res/values/strings.xml index b6ff1a83eef..ffb668d12c0 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -2761,13 +2761,15 @@ Display white balance - Adaptive sleep + Screen aware - On + On / Screen won’t turn off if you’re looking at it Off - Your screen would not dim and go to sleep if the device detects your present attention. + Prevents your screen from turning off if you’re looking at it. + + Screen aware uses the front camera to see if someone is looking at the screen. It works on device, and images are never stored or sent to Google. diff --git a/res/xml/adaptive_sleep_detail.xml b/res/xml/adaptive_sleep_detail.xml index b7dabbb1e45..e97a758c215 100644 --- a/res/xml/adaptive_sleep_detail.xml +++ b/res/xml/adaptive_sleep_detail.xml @@ -32,6 +32,7 @@