From 4d2312527159de63dc002e8de3131eefb8962d3e Mon Sep 17 00:00:00 2001 From: Ben Lin Date: Wed, 19 Jan 2022 19:14:50 -0800 Subject: Notif pipeline: call on UpdateFinished() callback after adding a child. This used to be called in NotificationViewHierarchyManager#updateNotificationViews, but in the new pipeline world we no longer use that and instead rely on RootNodeController now. Give the callback a heads up after adding a child. Bug: None Test: Build Change-Id: I4a55fdc59d405bc552f47d14d6ccafa0fb9e042f --- .../statusbar/notification/collection/render/RootNodeController.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/RootNodeController.kt b/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/RootNodeController.kt index a1800ed12125..4de8e7a5641c 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/RootNodeController.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/RootNodeController.kt @@ -40,6 +40,7 @@ class RootNodeController( override fun addChildAt(child: NodeController, index: Int) { listContainer.addContainerViewAt(child.view, index) + listContainer.onNotificationViewUpdateFinished() } override fun moveChildTo(child: NodeController, index: Int) { -- cgit v1.2.3-59-g8ed1b