From ea9009b4940f9fb99fa3d8f40e76bcdd6848715c Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Thu, 13 Jul 2017 14:35:17 -0400 Subject: CATEGORY_SYSTEM should not bypass dnd Test: code inspection Change-Id: I857a88c2b992218ea2caace8bf5e6c05f14aec1b Fixes: 31461162 --- .../java/com/android/server/notification/ZenModeFiltering.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/services/core/java/com/android/server/notification/ZenModeFiltering.java b/services/core/java/com/android/server/notification/ZenModeFiltering.java index cbaad460b888..a7a2743dfc7f 100644 --- a/services/core/java/com/android/server/notification/ZenModeFiltering.java +++ b/services/core/java/com/android/server/notification/ZenModeFiltering.java @@ -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) -- cgit v1.2.3-59-g8ed1b