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
This commit is contained in:
@@ -2829,14 +2829,15 @@
|
||||
<!-- Display settings screen, setting option name to enable adaptive sleep [CHAR LIMIT=30] -->
|
||||
<string name="adaptive_sleep_title">Screen attention</string>
|
||||
<!-- Setting option summary when adaptive sleep is on [CHAR LIMIT=NONE] -->
|
||||
<string name="adaptive_sleep_summary_on">On / Screen won’t turn off if you’re looking at it</string>
|
||||
<string name="adaptive_sleep_summary_on">On / Screen won\u2019t turn off if you\u2019re looking at it</string>
|
||||
<!-- Setting option summary when adaptive sleep is off [CHAR LIMIT=NONE] -->
|
||||
<string name="adaptive_sleep_summary_off">Off</string>
|
||||
<!-- Description about the feature adaptive sleep [CHAR LIMIT=NONE]-->
|
||||
<string name="adaptive_sleep_description">Keep screen on when viewing it</string>
|
||||
<string name="adaptive_sleep_description">Prevents your screen from turning off if you\u2019re looking at it</string>
|
||||
<!-- Description feature's privacy sensitive details to make sure users understand what feature users, what it saves/sends etc [CHAR LIMIT=NONE]-->
|
||||
<string name="adaptive_sleep_privacy">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.</string>
|
||||
|
||||
<!-- Description about the contextual adaptive sleep card [CHAR LIMIT=NONE]-->
|
||||
<string name="adaptive_sleep_contextual_slice_summary">Keep screen on when viewing it</string>
|
||||
|
||||
<!-- Night display screen, setting option name to enable night display (renamed "Night Light" with title caps). [CHAR LIMIT=30] -->
|
||||
<string name="night_display_title">Night Light</string>
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user