Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d31508c authored by Philip Quinn's avatar Philip Quinn
Browse files

Revert "added call notif exemption to PostNotificationRunnable"

This reverts commit 7a2eb570.

Reason for revert: b/231247057

Change-Id: I7245a2a8b892fa1615555ba5512297e25c1c0252
parent 7a2eb570
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -7313,7 +7313,6 @@ public class NotificationManagerService extends SystemService {
        @Override
        @Override
        public void run() {
        public void run() {
            boolean appBanned = !areNotificationsEnabledForPackageInt(pkg, uid);
            boolean appBanned = !areNotificationsEnabledForPackageInt(pkg, uid);
            boolean isCallNotification = isCallNotification(pkg, uid);
            synchronized (mNotificationLock) {
            synchronized (mNotificationLock) {
                try {
                try {
                    NotificationRecord r = null;
                    NotificationRecord r = null;
@@ -7332,10 +7331,8 @@ public class NotificationManagerService extends SystemService {
                    final StatusBarNotification n = r.getSbn();
                    final StatusBarNotification n = r.getSbn();
                    final Notification notification = n.getNotification();
                    final Notification notification = n.getNotification();
                    boolean isCallNotificationAndCorrectStyle = isCallNotification
                            && notification.isStyle(Notification.CallStyle.class);
                    if (!(notification.isMediaNotification() || isCallNotificationAndCorrectStyle)
                    if (!notification.isMediaNotification()
                            && (appBanned || isRecordBlockedLocked(r))) {
                            && (appBanned || isRecordBlockedLocked(r))) {
                        mUsageStats.registerBlocked(r);
                        mUsageStats.registerBlocked(r);
                        if (DBG) {
                        if (DBG) {