Merge "Invalidate (re-section) the list when a notification is no longer heads up." into tm-qpr-dev

This commit is contained in:
Jeff DeCew
2022-05-27 19:21:12 +00:00
committed by Android (Google) Code Review

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)
}