Merge "Add log to NoMan for canceled cancels" into rvc-qpr-dev am: 8092c9b37d

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12585704

Change-Id: If8fe5ff4c178a3173761f03112b0b8da67dc15fe
diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java
index d254419..a0f8373 100755
--- a/services/core/java/com/android/server/notification/NotificationManagerService.java
+++ b/services/core/java/com/android/server/notification/NotificationManagerService.java
@@ -6245,6 +6245,8 @@
                     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;
                         }
                     }