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

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

Fix stream reassignment for alarm notifications

Test: NotificationChannelExtractorTest
Flag: EXEMPT bug fix
Fixes: 386217049
Change-Id: Iaa7ae0dc06d277101b722791299fa243b7e92e98
parent 8d70e481
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ public class NotificationChannelExtractor implements NotificationSignalExtractor
                updateAttributes = true;
            }
            if (restrictAudioAttributesAlarm()
                    && record.getNotification().category != CATEGORY_ALARM
                    && !CATEGORY_ALARM.equals(record.getNotification().category)
                    && attributes.getUsage() == AudioAttributes.USAGE_ALARM) {
                updateAttributes = true;
            }
+1 −1
Original line number Diff line number Diff line
@@ -204,7 +204,7 @@ public class NotificationChannelExtractorTest extends UiServiceTestCase {
                .build());
        final Notification n = new Notification.Builder(getContext())
                .setContentTitle("foo")
                .setCategory(CATEGORY_ALARM)
                .setCategory(new String("alarm"))
                .setSmallIcon(android.R.drawable.sym_def_app_icon)
                .build();
        NotificationRecord r = getRecord(channel, n);