From 30237deb8bd18c41838f5f7ff94f29c9a59a6131 Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Wed, 8 Jan 2020 12:49:06 -0500 Subject: [PATCH] Update posted time for notification history Because we log some entries @ time viewed versus posted, we need to log the time of the interruption so the entries match the ordering in the log Test: manual Bug: 137396965 Change-Id: If172b1662721ae4fa9526014afacc12be4c79a6b --- .../android/server/notification/NotificationManagerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index a4f4d079df277..728b297b4d8ef 100755 --- a/services/core/java/com/android/server/notification/NotificationManagerService.java +++ b/services/core/java/com/android/server/notification/NotificationManagerService.java @@ -2481,7 +2481,7 @@ public class NotificationManagerService extends SystemService { .setUid(r.sbn.getUid()) .setChannelId(r.getChannel().getId()) .setChannelName(r.getChannel().getName().toString()) - .setPostedTimeMs(r.sbn.getPostTime()) + .setPostedTimeMs(System.currentTimeMillis()) .setTitle(getHistoryTitle(r.getNotification())) .setText(getHistoryText( r.sbn.getPackageContext(getContext()), r.getNotification()))