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
This commit is contained in:
Zhen Zhang
2019-11-04 17:03:09 -08:00
parent d19566312e
commit 52d82f59ea

View File

@@ -142,6 +142,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,