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

Commit 7c58d369 authored by Evan Laird's avatar Evan Laird
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 cb5b4e97
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -6259,6 +6259,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;
                        }
                    }