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

Commit e214fb4f authored by Evan Laird's avatar Evan Laird Committed by Julia Reynolds
Browse files

Add log to NoMan for canceled cancels

In the case where a notification_cancel is skipped when finding a more
recently enqueued notification for the same key, now throw a log so we
know that we're dropping a message from the system.

Bug: 162652224
Test: manual
Change-Id: I313076f8b15b00286f532ace1bbe7da2f7db4afe
parent 047c1b91
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -6245,6 +6245,8 @@ public class NotificationManagerService extends SystemService {
                    for (NotificationRecord r : enqueued) {
                        if (r.mUpdateTimeMs > mWhen) {
                            // At least one enqueue was posted after the cancel, so we're invalid
                            Slog.i(TAG, "notification cancel ignored due to newer enqueued entry"
                                    + "key=" + r.getSbn().getKey());
                            return;
                        }
                    }