CATEGORY_SYSTEM should not bypass dnd

Test: code inspection
Change-Id: I857a88c2b992218ea2caace8bf5e6c05f14aec1b
Fixes: 31461162
This commit is contained in:
Julia Reynolds
2017-07-13 14:35:17 -04:00
parent 516e4d3c2b
commit ea9009b494

View File

@@ -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)