summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Evan Laird <evanlaird@google.com> 2020-08-28 11:25:04 -0400
committer Julia Reynolds <juliacr@google.com> 2020-09-14 14:58:14 +0000
commite214fb4f25c775b16f15fbcc3ca34713e033b5ca (patch)
treeae2a9133c6881e55c261b8e92d4c944494f32ab3
parent047c1b917d95375ec610725ee25ffd57ae8314d1 (diff)
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
-rwxr-xr-xservices/core/java/com/android/server/notification/NotificationManagerService.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java
index e42dd359dad1..5d0981da1906 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 @@ 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;
}
}