Invalidate (re-section) the list when a notification is no longer heads up.

Fixes: 231337045
Test: dumpsysui NotifLog NotifHeadsUpLog
Change-Id: I9aa8b5b09336db70c6d83844b7b265625837effd
This commit is contained in:
Jeff DeCew
2022-05-03 19:07:45 +00:00
parent f5c4898494
commit 82aa975c60

View File

@@ -503,6 +503,7 @@ class HeadsUpCoordinator @Inject constructor(
private val mOnHeadsUpChangedListener = object : OnHeadsUpChangedListener {
override fun onHeadsUpStateChanged(entry: NotificationEntry, isHeadsUp: Boolean) {
if (!isHeadsUp) {
mNotifPromoter.invalidateList()
mHeadsUpViewBinder.unbindHeadsUpView(entry)
endNotifLifetimeExtensionIfExtended(entry)
}