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

Commit 7fb0c330 authored by Matías Hernández's avatar Matías Hernández
Browse files

Adjust strings in modes list to match latest mocks

Bug: 346575288
Test: atest ZenModesListItemPreferenceTest
Flag: android.app.modes_ui
Change-Id: Ibe9c049ed0fb3b1838866b923a6227d67885c75c
parent 67d977b7
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -7946,11 +7946,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();
    }
}