From 617e86c0a2f66bb35d48716da19d2a7cd5fe17cc Mon Sep 17 00:00:00 2001 From: Yi-Ling Chuang Date: Thu, 19 Mar 2020 16:38:00 +0800 Subject: [PATCH] Update string for Adaptive sleep slice title. The previous change of the slice title will also impact the title in Display setting, so this CL creates a new string for the slice title and revert the change of the normal preference. Fixes: 151746621 Test: check the titile on Adaptive sleep slice and Display setting. Change-Id: I2955f4c78b7bf689078deaabcc4148bd5e37b573 --- res/values/strings.xml | 4 +++- .../contextualcards/slices/ContextualAdaptiveSleepSlice.java | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index cea494fef96..4a9a7c79d0d 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -2742,7 +2742,7 @@ - Turn on screen attention + Screen attention On / Screen won\u2019t turn off if you\u2019re looking at it @@ -2755,6 +2755,8 @@ Prevents your screen from turning off if you\u2019re looking at it Screen attention 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. + + Turn on screen attention Keep screen on when looking at it diff --git a/src/com/android/settings/homepage/contextualcards/slices/ContextualAdaptiveSleepSlice.java b/src/com/android/settings/homepage/contextualcards/slices/ContextualAdaptiveSleepSlice.java index c94469a6cbe..b9cc202fbc4 100644 --- a/src/com/android/settings/homepage/contextualcards/slices/ContextualAdaptiveSleepSlice.java +++ b/src/com/android/settings/homepage/contextualcards/slices/ContextualAdaptiveSleepSlice.java @@ -81,7 +81,8 @@ public class ContextualAdaptiveSleepSlice implements CustomSliceable { if (isSettingsAvailable() && !isUserInteracted() && !isRecentlySetup() && !isTurnedOn()) { final IconCompat icon = IconCompat.createWithResource(mContext, R.drawable.ic_settings_adaptive_sleep); - final CharSequence title = mContext.getText(R.string.adaptive_sleep_title); + final CharSequence title = + mContext.getText(R.string.adaptive_sleep_contextual_slice_title); final CharSequence subtitle = mContext.getText( R.string.adaptive_sleep_contextual_slice_summary);