commit | b61b7396614af63d48e46996ca437efc4d6268bf | [log] [tgz] |
---|---|---|
author | Julia Reynolds <juliacr@google.com> | Wed Jun 30 12:59:28 2021 -0400 |
committer | Julia Reynolds <juliacr@google.com> | Wed Jun 30 12:59:28 2021 -0400 |
tree | 0e91452ac47d77fd20be5451cf6f2bef9c2b53ff | |
parent | a375349c0abf874c59e0b05c6aaba2f72442766f [diff] |
Properly set all data fields So stale data doesn't stick around when the view is recycled Test: manual: - dismiss a notification - set a short timer (a custom view notif) - check history after timer expires (so there are 2 notifs in 'recently dismissed') - stop the timer and check history - there are now 3 notifs and no stale text in any of them Fixes: 192294011 Change-Id: I229a0388a703b9df0d92eec81066a9a2f67e183e
diff --git a/src/com/android/settings/notification/history/NotificationSbnViewHolder.java b/src/com/android/settings/notification/history/NotificationSbnViewHolder.java index c98b036..166ee5d 100644 --- a/src/com/android/settings/notification/history/NotificationSbnViewHolder.java +++ b/src/com/android/settings/notification/history/NotificationSbnViewHolder.java
@@ -65,9 +65,6 @@ } void setTitle(CharSequence title) { - if (title == null) { - return; - } mTitle.setText(title); }