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

Commit ea9009b4 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

CATEGORY_SYSTEM should not bypass dnd

Test: code inspection
Change-Id: I857a88c2b992218ea2caace8bf5e6c05f14aec1b
Fixes: 31461162
parent 516e4d3c
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -104,9 +104,6 @@ public class ZenModeFiltering {
    }

    public boolean shouldIntercept(int zen, ZenModeConfig config, NotificationRecord record) {
        if (isSystem(record)) {
            return false;
        }
        switch (zen) {
            case Global.ZEN_MODE_NO_INTERRUPTIONS:
                // #notevenalarms
@@ -177,10 +174,6 @@ public class ZenModeFiltering {
        return false;
    }

    private static boolean isSystem(NotificationRecord record) {
        return record.isCategory(Notification.CATEGORY_SYSTEM);
    }

    private static boolean isAlarm(NotificationRecord record) {
        return record.isCategory(Notification.CATEGORY_ALARM)
                || record.isAudioStream(AudioManager.STREAM_ALARM)