Add master toggle to enable/disable screen savers
The new control toggles the Settings.Secure.SCREENSAVER_ENABLED setting, which controls if a screen saver is enabled. Also removed the "Never" option from the WhenToDream picker, since this is now controlled via the toggle. Test: locally on device Bug: 222360260 Change-Id: Ibcf52b5e2d1ad0c295f32c4c18bfc89082d074ce
This commit is contained in:
@@ -1220,14 +1220,12 @@
|
||||
<item>@string/screensaver_settings_summary_sleep</item>
|
||||
<item>@string/screensaver_settings_summary_dock</item>
|
||||
<item>@string/screensaver_settings_summary_either_long</item>
|
||||
<item>@string/screensaver_settings_summary_never</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="when_to_start_screensaver_values" translatable="false">
|
||||
<item>while_charging_only</item>
|
||||
<item>while_docked_only</item>
|
||||
<item>either_charging_or_docked</item>
|
||||
<item>never</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="zen_mode_contacts_messages_entries" translatable="false">
|
||||
|
||||
@@ -3168,6 +3168,8 @@
|
||||
<string name="style_suggestion_summary">Try different styles, wallpapers, and more</string>
|
||||
<!-- Display settings screen, trigger for screen saver options -->
|
||||
<string name="screensaver_settings_title">Screen saver</string>
|
||||
<!-- The title for the toggle which disables/enables screen savers [CHAR_LIMIT=30] -->
|
||||
<string name="screensaver_settings_toggle_title">Use screen saver</string>
|
||||
<!-- Display settings screen, summary fragment for screen saver options, activated when docked or asleep and charging -->
|
||||
<string name="screensaver_settings_summary_either_long">While charging or docked</string>
|
||||
<!-- Dream settings screen, dialog option, activated when docked or asleep and charging -->
|
||||
|
||||
Reference in New Issue
Block a user