Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9804955a authored by ELIYAZ MOMIN's avatar ELIYAZ MOMIN Committed by Android (Google) Code Review
Browse files

Revert "Tweak Modes layouts and use updated strings to match mocks"

This reverts commit 0359aaeb.

Reason for revert: <Potential culprit for b/356564046  - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.>

Change-Id: I980838773078d822d20608e5975a26cf8dbed2be
parent 0359aaeb
Loading
Loading
Loading
Loading
+32 −40
Original line number Diff line number Diff line
@@ -7955,28 +7955,24 @@
    <!-- Zen Modes: Title for the Modes option and associated settings page. [CHAR LIMIT=50]-->
    <string name="zen_modes_list_title">Priority Modes</string>
    <!-- Zen Modes: Intro text describing the feature. [CHAR LIMIT=NONE]-->
    <string name="zen_modes_list_intro">Minimize distractions and take control of your attention with modes for sleep, work, driving, and everything in between.</string>
    <!-- Zen Modes: Caption of the "add a mode" item in the modes list -->
    <string name="zen_modes_add_mode">Create your own mode</string>
    <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>
    <!-- Zen Modes: Option to add an automatic schedule for a mode. [CHAR_LIMIT=40] -->
    <string name="zen_mode_select_schedule">Set a schedule</string>
    <!-- Priority Modes: Title of the dialog used to choose an automatic schedule for a mode. [CHAR_LIMIT=40] -->
    <string name="zen_mode_select_schedule_title">Schedule based on</string>
    <string name="zen_mode_select_schedule">Select activation type</string>
    <!-- Priority Modes: Option to choose a time-based schedule for a mode. [CHAR_LIMIT=40] -->
    <string name="zen_mode_select_schedule_time">Day and time</string>
    <string name="zen_mode_select_schedule_time">Time</string>
    <!-- Priority Modes: Example text for the option to choose a time-based schedule for a mode. [CHAR_LIMIT=60] -->
    <string name="zen_mode_select_schedule_time_example">\"9 AM - 5 PM weekdays\"</string>
    <string name="zen_mode_select_schedule_time_example">Ex. \"9:30 – 5:00 PM\"</string>
    <!-- Priority Modes: Option to choose a calendar-events-based schedule for a mode. [CHAR_LIMIT=40] -->
    <string name="zen_mode_select_schedule_calendar">Calendar events</string>
    <string name="zen_mode_select_schedule_calendar">Calendar</string>
    <!-- Priority Modes: Example text for the option to choose a calendar-events-based schedule for a mode. [CHAR_LIMIT=60] -->
    <string name="zen_mode_select_schedule_calendar_example">Ex. \"Personal calendar\"</string>
    <!-- Priority Modes: Short text that indicates that a mode is currently on (active). [CHAR_LIMIT=10] -->
    <string name="zen_mode_active_text">ON</string>
@@ -7996,15 +7992,6 @@
    <!-- Priority Modes: Option to add a "custom" mode in the "Add a mode" dialog. [CHAR_LIMIT=20] -->
    <string name="zen_mode_new_option_custom">Custom</string>
    <!-- Priority Modes: Caption of the button to turn on a mode [CHAR LIMIT=20] -->
    <string name="zen_mode_action_activate">Turn on now</string>
    <!-- Priority Modes: Caption of the button to turn off a currently active mode [CHAR LIMIT=20] -->
    <string name="zen_mode_action_deactivate">Turn off</string>
    <!-- Priority Modes: Text to display if a mode isn't found [CHAR LIMIT=40] -->
    <string name="zen_mode_not_found_text">Mode not found</string>
    <!-- Subtitle for the Do not Disturb slice. [CHAR LIMIT=50]-->
    <string name="zen_mode_slice_subtitle">Limit interruptions</string>
@@ -8042,17 +8029,19 @@
    <string name="zen_mode_automatic_rule_settings_page_title">Schedule</string>
    <!-- Do not disturb: Title for settings section describing when the rule turns on automatically [CHAR LIMIT=30] -->
    <string name="zen_mode_automatic_trigger_title">When to turn on automatically</string>
    <string name="zen_mode_automatic_trigger_title">Turn on automatically</string>
    <!-- Do not disturb: Title prompting a user to choose a calendar to use for an automatic rule [CHAR LIMIT=30] -->
    <string name="zen_mode_set_calendar_title">Add a calendar</string>
    <!-- Priority Modes: Title prompting a user to choose a calendar to use for an automatic rule [CHAR LIMIT=30] -->
    <string name="zen_mode_set_calendar_title">Event schedule</string>
    <!-- Priority Modes: Title prompting a user to choose a calendar to use for an automatic rule [CHAR LIMIT=30] -->
    <string name="zen_mode_set_calendar_which_calendar">Turn on during events for</string>
    <!-- Priority Modes: Title prompting a user to choose a calendar to use for an automatic rule [CHAR LIMIT=30] -->
    <string name="zen_mode_set_calendar_which_reply">Where invite reply is</string>
    <!-- Do not disturb: Link text prompting a user to click through to setting a calendar [CHAR LIMIT=40] -->
    <string name="zen_mode_set_calendar_link">Use your calendar</string>
    <!-- Do not disturb: Title on the page where users choose a calendar to determine the schedule for an automatically-triggered DND rule. [CHAR LIMIT=30] -->
    <string name="zen_mode_set_calendar_category_title">Schedule</string>
    <!-- Do not disturb: Title prompting a user to set a time-based schedule to use for an automatic rule [CHAR LIMIT=30] -->
    <string name="zen_mode_set_schedule_title">Time schedule</string>
    <string name="zen_mode_set_schedule_title">Set a schedule</string>
    <!-- Do not disturb: Link text prompting a user to click through to setting a time-based schedule [CHAR LIMIT=40] -->
    <string name="zen_mode_set_schedule_link">Schedule</string>
@@ -8060,6 +8049,9 @@
    <!-- Duration in hours and minutes for the length of a Do Not Disturb schedule. For example "1 hr, 22 min" -->
    <string name="zen_mode_schedule_duration"><xliff:g example="10" id="hours">%1$d</xliff:g> hr, <xliff:g example="20" id="minutes">%2$d</xliff:g> min</string>
    <!-- Priority Modes: Label for switch to enable/disable a rule turning on automatically; links to an app-provided configuration page [CHAR LIMIT=40] -->
    <string name="zen_mode_configuration_link_title">Turn on automatically</string>
    <!--  Do not disturb: Title do not disturb settings representing automatic (scheduled) do not disturb rules. [CHAR LIMIT=30] -->
    <string name="zen_mode_schedule_category_title">Schedule</string>
@@ -8088,9 +8080,9 @@
    <string name="zen_mode_visual_signals_settings_subtitle">Allow visual signals</string>
    <!-- Priority Modes: mode page section title [CHAR LIMIT=80] -->
    <string name="mode_interruption_filter_title">Notification filters</string>
    <string name="mode_interruption_filter_title">Stay focused</string>
    <!-- Priority Modes: mode page section title [CHAR LIMIT=80] -->
    <string name="mode_device_effects_title">More settings</string>
    <string name="mode_device_effects_title">Additional actions</string>
    <!-- Summary for the Sound Do not Disturb option when DND isn't currently on. [CHAR LIMIT=NONE]-->
    <string name="modes_sound_summary_off">
@@ -8141,7 +8133,7 @@
        }
    </string>
    <!-- Modes: setting for whether the mode should filter (silence/hide) notifications/volume streams -->
    <string name="mode_notification_filter_title">Limit what can notify you</string>
    <string name="mode_notification_filter_title">Filter interruptions</string>
    <!-- Modes: subtext when a mode is not filtering (silence/hide) notifications/volume streams -->
    <string name="mode_no_notification_filter">No interruptions are filtered</string>
@@ -9438,7 +9430,7 @@
    <string name="zen_mode_rename_title">Edit mode</string>
    <!-- Priority Modes: Title for the "add mode" screen [CHAR LIMIT=20] -->
    <string name="zen_mode_new_custom_title">Create a mode</string>
    <string name="zen_mode_new_custom_title">Add mode</string>
    <!-- Priority Modes: Default name for new custom modes [CHAR LIMIT=30] -->
    <string name="zen_mode_new_custom_default_name">Custom mode</string>
@@ -9449,26 +9441,26 @@
    <!-- Priority Modes: Trigger title for modes of type SCHEDULE_CALENDAR. [CHAR LIMIT=30] -->
    <string name="zen_mode_trigger_title_schedule_calendar">Calendar events</string>
    <!-- Priority Modes: Trigger title for modes of type BEDTIME. [CHAR LIMIT=30] -->
    <string name="zen_mode_trigger_title_bedtime">Bedtime routine</string>
    <string name="zen_mode_trigger_title_bedtime">Sleep schedule</string>
    <!-- Priority Modes: Trigger title for modes of type DRIVING. [CHAR LIMIT=30] -->
    <string name="zen_mode_trigger_title_driving">While driving</string>
    <!-- Priority Modes: Generic trigger title for modes of other types [CHAR LIMIT=30] -->
    <string name="zen_mode_trigger_title_generic">App settings</string>
    <string name="zen_mode_trigger_title_generic">Linked to app</string>
    <!-- Priority Modes: Generic trigger summary for modes where the owner app did not provide a triggerDescription but did provide a configurationActivity to call [CHAR LIMIT=60] -->
    <string name="zen_mode_trigger_summary_settings_in_app">Info and settings in <xliff:g id="app_name" example="The Awesome App">%1$s</xliff:g></string>
    <!-- Priority Modes: Generic trigger summary for modes where the owner app did not provide neither a triggerDescription nor a configurationActivity to call [CHAR LIMIT=60] -->
    <string name="zen_mode_trigger_summary_managed_by_app">Managed by <xliff:g id="app_name" example="The Awesome App">%1$s</xliff:g></string>
    <!-- Priority Modes: Title of the confirmation dialog for disabling an enabled mode [CHAR LIMIT=20] -->
    <string name="zen_mode_confirm_disable_mode_title">Disable <xliff:g id="mode_name" example="Driving Mode">%1$s</xliff:g>?</string>
    <!-- Priority Modes: Title of the confirmation dialog for disabling an enabled mode [CHAR LIMIT=30] -->
    <string name="zen_mode_confirm_disable_title">Disable Mode</string>
    <!-- Priority Modes: Message body of the confirmation dialog for disabling an enabled mode [CHAR LIMIT=NONE] -->
    <string name="zen_mode_confirm_disable_message">This mode will never turn on when disabled</string>
    <string name="zen_mode_confirm_disable_message">If you disable this feature, the mode will no longer work as intended and its settings will be hidden.</string>
    <!-- Priority Modes: Button to disable a mode [CHAR LIMIT=20] -->
    <string name="zen_mode_action_disable">Disable</string>
    <!-- Priority Modes: Title of the confirmation dialog for enabling a disabled mode [CHAR LIMIT=20] -->
    <string name="zen_mode_confirm_enable_mode_title">Enable <xliff:g id="mode_name" example="Driving Mode">%1$s</xliff:g>?</string>
    <!-- Priority Modes: Title of the confirmation dialog for enabling a disabled mode [CHAR LIMIT=30] -->
    <string name="zen_mode_confirm_enable_title">Enable Mode</string>
    <!-- Priority Modes: Message body of the confirmation dialog for enabling a disabled mode [CHAR LIMIT=NONE] -->
    <string name="zen_mode_confirm_enable_message">This mode may turn on automatically based on its settings</string>
    <string name="zen_mode_confirm_enable_message">If you enable this feature, the mode will activate automatically according to its schedule.</string>
    <!-- Priority Modes: Button to disable a mode [CHAR LIMIT=20] -->
    <string name="zen_mode_action_enable">Enable</string>
+4 −11
Original line number Diff line number Diff line
@@ -24,21 +24,14 @@

    <PreferenceCategory
        android:key="zen_mode_settings_category_calls"
        android:title="@string/zen_mode_calls_header">
        android:title="@string/zen_mode_calls_header"
        settings:allowDividerBelow="true">
    </PreferenceCategory>

    <com.android.settings.applications.SpacePreference
        android:key="hearing_aid_space_layout"
        android:layout_height="16dp"/>

    <!-- Repeat callers -->
    <SwitchPreferenceCompat
        android:key="zen_mode_repeat_callers"
        android:title="@string/zen_mode_repeat_callers_title" />
        android:title="@string/zen_mode_repeat_callers_title"
        settings:allowDividerAbove="true"/>

    <com.android.settingslib.widget.FooterPreference
        android:key="info_footer"
        android:title="@string/zen_mode_calls_footer"
        android:selectable="false"
        settings:searchable="false"/>
</PreferenceScreen>
+2 −3
Original line number Diff line number Diff line
@@ -20,12 +20,11 @@
    xmlns:settings="http://schemas.android.com/apk/res-auto"
    android:title="@string/zen_modes_list_title">

    <com.android.settingslib.widget.TopIntroPreference
        android:title="@string/zen_modes_list_intro" />
    <!-- TODO: b/333682392 - add strings for summary as appropriate -->

    <PreferenceCategory
        android:key="zen_modes_list">
        <!-- Preferences leading to individual mode pages are added in this PreferenceCategory. -->
        <!-- Preferences leading to rules are added in this PreferenceCategory. -->
    </PreferenceCategory>

    <Preference
+0 −6
Original line number Diff line number Diff line
@@ -26,10 +26,4 @@
        android:key="zen_mode_settings_category_messages"
        android:title="@string/zen_mode_messages_header">
    </PreferenceCategory>

    <com.android.settingslib.widget.FooterPreference
        android:key="info_footer"
        android:title="@string/zen_mode_messages_footer"
        android:selectable="false"
        settings:searchable="false"/>
</PreferenceScreen>
+0 −7
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@

<PreferenceScreen
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:settings="http://schemas.android.com/apk/res-auto"
    android:title="@string/zen_category_people" >

   <!-- Calls & Messages -->
@@ -35,10 +34,4 @@
          android:title="@string/zen_mode_calls_title"
          android:icon="@drawable/ic_zen_mode_people_calls" />
   </PreferenceCategory>

   <com.android.settingslib.widget.FooterPreference
       android:key="info_footer"
       android:title="@string/zen_mode_people_footer"
       android:selectable="false"
       settings:searchable="false"/>
</PreferenceScreen>
Loading