Loading services/core/java/com/android/server/notification/NotificationManagerService.java +1 −4 Original line number Diff line number Diff line Loading @@ -7371,7 +7371,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; Loading @@ -7390,10 +7389,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) { Loading Loading
services/core/java/com/android/server/notification/NotificationManagerService.java +1 −4 Original line number Diff line number Diff line Loading @@ -7371,7 +7371,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; Loading @@ -7390,10 +7389,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) { Loading