Update mOnDissmissRunnable when Notification gets updated.

mOnDissmissRunnable holds reference to StatusBarNotification instance.
We should update it when notification gets updated.
Bug: 141699084
Test: atest NotifCollectionTest, NotificationDataTest,
NotificationEntryManagerTest

Change-Id: Iaa4306eedeb144dba480c551808dd431e096314c
Merged-In: Iaa4306eedeb144dba480c551808dd431e096314c
(cherry picked from commit 52d82f59ea)
This commit is contained in:
Zhen Zhang
2019-11-04 17:03:09 -08:00
parent c866e0c52e
commit 4cc695ce44

View File

@@ -137,6 +137,7 @@ public class NotificationRowBinderImpl implements NotificationRowBinder {
entry.updateIcons(mContext, sbn);
entry.reset();
updateNotification(entry, pmUser, sbn, entry.getRow());
entry.getRow().setOnDismissRunnable(onDismissRunnable);
} else {
entry.createIcons(mContext, sbn);
new RowInflaterTask().inflate(mContext, parent, entry,