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

Commit 36ab93e9 authored by Matías Hernández's avatar Matías Hernández
Browse files

Use the DND icon for modes of type UNKNOWN

Fixes: 376404078
Test: manual
Flag: android.app.modes_ui
Change-Id: I05229c34d07af0795a8b151c8f78a770fcdaa897
parent f795bcef
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -5647,7 +5647,6 @@
  <java-symbol type="drawable" name="ic_zen_mode_type_schedule_calendar" />
  <java-symbol type="drawable" name="ic_zen_mode_type_schedule_time" />
  <java-symbol type="drawable" name="ic_zen_mode_type_theater" />
  <java-symbol type="drawable" name="ic_zen_mode_type_unknown" />
  <java-symbol type="drawable" name="ic_zen_mode_type_special_dnd" />

  <!-- System notification for background user sound -->
+2 −2
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ class ZenIconKeys {

    private static final ImmutableMap<Integer, ZenIcon.Key> TYPE_DEFAULTS = ImmutableMap.of(
            AutomaticZenRule.TYPE_UNKNOWN,
            ZenIcon.Key.forSystemResource(R.drawable.ic_zen_mode_type_unknown),
            ZenIcon.Key.forSystemResource(R.drawable.ic_zen_mode_type_special_dnd),
            AutomaticZenRule.TYPE_OTHER,
            ZenIcon.Key.forSystemResource(R.drawable.ic_zen_mode_type_other),
            AutomaticZenRule.TYPE_SCHEDULE_TIME,
@@ -61,7 +61,7 @@ class ZenIconKeys {
    );

    private static final ZenIcon.Key FOR_UNEXPECTED_TYPE =
            ZenIcon.Key.forSystemResource(R.drawable.ic_zen_mode_type_unknown);
            ZenIcon.Key.forSystemResource(R.drawable.ic_zen_mode_type_special_dnd);

    /** Default icon descriptors per mode {@link AutomaticZenRule.Type}. */
    static ZenIcon.Key forType(@AutomaticZenRule.Type int ruleType) {