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

Commit 40b6a492 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Adjust strings in modes list to match latest mocks" into main

parents 9bf762bf 7fb0c330
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -7985,11 +7985,11 @@
    <!-- Priority Modes: Format string for the "current state + trigger description summary for rules in the list. [CHAR_LIMIT=10] -->
    <string name="zen_mode_format_status_and_trigger" translatable="false"><xliff:g id="current_status" example="ON">%1$s</xliff:g> • <xliff:g id="trigger_description" example="Mon-Fri, 23:00-7:00">%2$s</xliff:g></string>
    <!-- Priority Modes: Call to action for a mode that is disabled and needs to be configured. [CHAR_LIMIT=40] -->
    <string name="zen_mode_disabled_tap_to_set_up">Tap to set up</string>
    <!-- Priority Modes: Indicates that a mode is disabled and needs to be configured. [CHAR_LIMIT=40] -->
    <string name="zen_mode_disabled_needs_setup">Not set</string>
    <!-- Priority Modes: Indicates that a mode is disabled by the user. [CHAR_LIMIT=40] -->
    <string name="zen_mode_disabled_by_user">Paused</string>
    <string name="zen_mode_disabled_by_user">Disabled</string>
    <!-- Subtitle for the Do not Disturb slice. [CHAR LIMIT=50]-->
    <string name="zen_mode_slice_subtitle">Limit interruptions</string>
+1 −1
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ class ZenModesListItemPreference extends RestrictedPreference {
                                    mZenMode.getRule().getTriggerDescription());
            case ENABLED -> mZenMode.getRule().getTriggerDescription();
            case DISABLED_BY_USER -> mContext.getString(R.string.zen_mode_disabled_by_user);
            case DISABLED_BY_OTHER -> mContext.getString(R.string.zen_mode_disabled_tap_to_set_up);
            case DISABLED_BY_OTHER -> mContext.getString(R.string.zen_mode_disabled_needs_setup);
        };
        setSummary(statusText);

+2 −2
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ public class ZenModesListItemPreferenceTest {
        ShadowLooper.idleMainLooper();

        assertThat(preference.getTitle()).isEqualTo("Mode disabled by app");
        assertThat(preference.getSummary()).isEqualTo("Tap to set up");
        assertThat(preference.getSummary()).isEqualTo("Not set");
        assertThat(preference.getIcon()).isNotNull();
    }

@@ -120,7 +120,7 @@ public class ZenModesListItemPreferenceTest {
        ShadowLooper.idleMainLooper();

        assertThat(preference.getTitle()).isEqualTo("Mode disabled by user");
        assertThat(preference.getSummary()).isEqualTo("Paused");
        assertThat(preference.getSummary()).isEqualTo("Disabled");
        assertThat(preference.getIcon()).isNotNull();
    }
}