CATEGORY_SYSTEM should not bypass dnd
Test: code inspection Change-Id: I857a88c2b992218ea2caace8bf5e6c05f14aec1b Fixes: 31461162
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user