diff options
| author | 2017-07-14 15:00:25 +0000 | |
|---|---|---|
| committer | 2017-07-14 15:00:25 +0000 | |
| commit | 505e2004610a5ded4c917d59a63ecec917cb5b50 (patch) | |
| tree | c16b77f15e30e17ebf22da5e6025c5b43531fd07 | |
| parent | 6c1cb7f0902df73b66419d5037de485f2b9727fa (diff) | |
| parent | ea9009b4940f9fb99fa3d8f40e76bcdd6848715c (diff) | |
Merge "CATEGORY_SYSTEM should not bypass dnd"
| -rw-r--r-- | services/core/java/com/android/server/notification/ZenModeFiltering.java | 7 |
1 files changed, 0 insertions, 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) |