From 4d31508c32c1c76e00bea9fbb451590acba2e949 Mon Sep 17 00:00:00 2001 From: Philip Quinn Date: Tue, 3 May 2022 00:41:24 +0000 Subject: [PATCH] Revert "added call notif exemption to PostNotificationRunnable" This reverts commit 7a2eb5704b1fe27a04970fc23e3619497790af64. Reason for revert: b/231247057 Change-Id: I7245a2a8b892fa1615555ba5512297e25c1c0252 --- .../server/notification/NotificationManagerService.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index 17e561947d703..21ee4c21ceeb4 100755 --- a/services/core/java/com/android/server/notification/NotificationManagerService.java +++ b/services/core/java/com/android/server/notification/NotificationManagerService.java @@ -7313,7 +7313,6 @@ public class NotificationManagerService extends SystemService { @Override public void run() { boolean appBanned = !areNotificationsEnabledForPackageInt(pkg, uid); - boolean isCallNotification = isCallNotification(pkg, uid); synchronized (mNotificationLock) { try { NotificationRecord r = null; @@ -7332,10 +7331,8 @@ public class NotificationManagerService extends SystemService { final StatusBarNotification n = r.getSbn(); final Notification notification = n.getNotification(); - boolean isCallNotificationAndCorrectStyle = isCallNotification - && notification.isStyle(Notification.CallStyle.class); - if (!(notification.isMediaNotification() || isCallNotificationAndCorrectStyle) + if (!notification.isMediaNotification() && (appBanned || isRecordBlockedLocked(r))) { mUsageStats.registerBlocked(r); if (DBG) {