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

Commit 9ae5e644 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Make the alert button 'default' instead of 'high'

So users are opting into sound but not huns

Change-Id: I7c3f4ab3204116bd393e59484d2591e74df8dea7
Fixes: 123983990
Test: atest
parent d136a7a2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -537,7 +537,7 @@ public class NotificationInfo extends LinearLayout implements NotificationGuts.G
                    mChosenImportance = IMPORTANCE_LOW;
                    confirmationText.setText(R.string.notification_channel_silenced);
                } else {
                    mChosenImportance = IMPORTANCE_HIGH;
                    mChosenImportance = IMPORTANCE_DEFAULT;
                    confirmationText.setText(R.string.notification_channel_unsilenced);
                }
                break;
+2 −3
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@ package com.android.systemui.statusbar.notification.row;

import static android.app.NotificationChannel.USER_LOCKED_IMPORTANCE;
import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
import static android.app.NotificationManager.IMPORTANCE_HIGH;
import static android.app.NotificationManager.IMPORTANCE_LOW;
import static android.app.NotificationManager.IMPORTANCE_MIN;
import static android.app.NotificationManager.IMPORTANCE_NONE;
@@ -1067,7 +1066,7 @@ public class NotificationInfoTest extends SysuiTestCase {
                anyString(), eq(TEST_UID), updated.capture());
        assertTrue((updated.getValue().getUserLockedFields()
                & USER_LOCKED_IMPORTANCE) != 0);
        assertEquals(IMPORTANCE_HIGH, updated.getValue().getImportance());
        assertEquals(IMPORTANCE_DEFAULT, updated.getValue().getImportance());
    }

    @Test
@@ -1111,7 +1110,7 @@ public class NotificationInfoTest extends SysuiTestCase {
                anyString(), eq(TEST_UID), updated.capture());
        assertTrue((updated.getValue().getUserLockedFields()
                & USER_LOCKED_IMPORTANCE) != 0);
        assertEquals(IMPORTANCE_HIGH, updated.getValue().getImportance());
        assertEquals(IMPORTANCE_DEFAULT, updated.getValue().getImportance());
    }

    @Test