From 9df180a0087f22ac7068e4c2d89d2cfa8bc4fc7c Mon Sep 17 00:00:00 2001 From: Yi Jiang Date: Tue, 4 Jun 2019 12:08:42 -0700 Subject: [PATCH] use different description strings for screen attention settings and contextual card 1. Revert the screen attention description string to the old approved string. 2. Create a new summary string for 'Screen Attention' contextual slice. 3. Fix some character issues. Bug: 134457354 Bug: 134585794 Test: make RunSettingsRoboTests -j 32 Change-Id: I401fc6707203790e51aed8738b4658c6a30f512e --- res/values/strings.xml | 7 ++++--- .../slices/ContextualAdaptiveSleepSlice.java | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 11af027dedc..16fa2224b13 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -2829,14 +2829,15 @@ Screen attention - On / Screen won’t turn off if you’re looking at it + On / Screen won\u2019t turn off if you\u2019re looking at it Off - Keep screen on when viewing it + 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. - + + Keep screen on when viewing it Night Light diff --git a/src/com/android/settings/homepage/contextualcards/slices/ContextualAdaptiveSleepSlice.java b/src/com/android/settings/homepage/contextualcards/slices/ContextualAdaptiveSleepSlice.java index 2c091fa716c..0e96b05c20d 100644 --- a/src/com/android/settings/homepage/contextualcards/slices/ContextualAdaptiveSleepSlice.java +++ b/src/com/android/settings/homepage/contextualcards/slices/ContextualAdaptiveSleepSlice.java @@ -80,7 +80,8 @@ public class ContextualAdaptiveSleepSlice implements CustomSliceable { final IconCompat icon = IconCompat.createWithResource(mContext, R.drawable.ic_settings_adaptive_sleep); final CharSequence title = mContext.getText(R.string.adaptive_sleep_title); - final CharSequence subtitle = mContext.getText(R.string.adaptive_sleep_description); + final CharSequence subtitle = mContext.getText( + R.string.adaptive_sleep_contextual_slice_summary); final SliceAction pAction = SliceAction.createDeeplink(getPrimaryAction(), icon,