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
This commit is contained in:
Julia Reynolds
2020-01-08 12:49:06 -05:00
parent 56d6f15acd
commit 30237deb8b

View File

@@ -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()))