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

Commit da2b45ae authored by d34d's avatar d34d Committed by Gerrit Code Review
Browse files

Notifications: Only check for spam if new

Change-Id: I9757ca7aa3db8e437dabb2ce8256e969d4dd0a5d
parent 31eb21b1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2030,7 +2030,8 @@ public class NotificationManagerService extends SystemService {
                        return;
                    }

                    if (isNotificationSpam(notification, pkg)) {
                    // Only check for spam if this is a new notification
                    if (old == null && isNotificationSpam(notification, pkg)) {
                        mArchive.record(r.sbn);
                        return;
                    }