Merge "First bits of "add a mode"" into main

This commit is contained in:
Matías Hernández
2024-06-15 12:14:09 +00:00
committed by Android (Google) Code Review
9 changed files with 263 additions and 40 deletions

View File

@@ -7906,7 +7906,7 @@
<!-- Sound: Footer hyperlink text to launch the Connected devices settings page. [CHAR LIMIT=NONE]-->
<string name="spatial_audio_footer_learn_more_text">Connected devices settings</string>
<!-- Sound: Summary for the Do not Disturb option that describes how many automatic rules (schedules) are enabled [CHAR LIMIT=NONE]-->
<!-- Zen Modes: Summary for the Do not Disturb option that describes how many automatic rules (schedules) are enabled [CHAR LIMIT=NONE]-->
<string name="zen_mode_settings_schedules_summary">
{count, plural,
=0 {None}
@@ -7915,13 +7915,16 @@
}
</string>
<!-- Sound: Title for the Do not Disturb option and associated settings page. [CHAR LIMIT=50]-->
<!-- Zen Modes: Title for the Do not Disturb option and associated settings page. [CHAR LIMIT=50]-->
<string name="zen_mode_settings_title">Do Not Disturb</string>
<!-- Sound: Title for the Modes option and associated settings page. [CHAR LIMIT=50]-->
<!-- Zen Modes: Title for the Modes option and associated settings page. [CHAR LIMIT=50]-->
<string name="zen_modes_list_title">Priority Modes</string>
<!-- Sound: Summary for the Do not Disturb option and associated settings page. [CHAR LIMIT=240]-->
<!-- Zen Modes: Caption of the "add a mode" item in the modes list -->
<string name="zen_modes_add_mode">Add a mode</string>
<!-- Zen Modes: Summary for the Do not Disturb option and associated settings page. [CHAR LIMIT=240]-->
<string name="zen_mode_settings_summary">Only get notified by important people and apps</string>
<!-- Subtitle for the Do not Disturb slice. [CHAR LIMIT=50]-->

View File

@@ -15,8 +15,10 @@
~ limitations under the License.
-->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/zen_modes_list_title" >
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res-auto"
android:title="@string/zen_modes_list_title">
<!-- TODO: b/333682392 - add strings for summary as appropriate -->
@@ -25,4 +27,10 @@
<!-- Preferences leading to rules are added in this PreferenceCategory. -->
</PreferenceCategory>
<Preference
android:key="add_mode"
android:title="@string/zen_modes_add_mode"
android:icon="@drawable/ic_add_24dp"
settings:allowDividerAbove="false"/>
</PreferenceScreen>