Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ui/viewbinder/SharedNotificationContainerBinder.kt +20 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,24 @@ object SharedNotificationContainerBinder { } } // Required to capture keyguard media changes and ensure the notification count is correct val layoutChangeListener = object : View.OnLayoutChangeListener { override fun onLayoutChange( view: View, left: Int, top: Int, right: Int, bottom: Int, oldLeft: Int, oldTop: Int, oldRight: Int, oldBottom: Int ) { viewModel.notificationStackChanged() } } val burnInParams = MutableStateFlow(BurnInParameters()) val viewState = ViewStateAccessor( Loading Loading @@ -170,6 +188,7 @@ object SharedNotificationContainerBinder { } insets } view.addOnLayoutChangeListener(layoutChangeListener) return object : DisposableHandle { override fun dispose() { Loading @@ -177,6 +196,7 @@ object SharedNotificationContainerBinder { disposableHandleMainImmediate.dispose() controller.setOnHeightChangedRunnable(null) view.setOnApplyWindowInsetsListener(null) view.removeOnLayoutChangeListener(layoutChangeListener) } } } Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ui/viewbinder/SharedNotificationContainerBinder.kt +20 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,24 @@ object SharedNotificationContainerBinder { } } // Required to capture keyguard media changes and ensure the notification count is correct val layoutChangeListener = object : View.OnLayoutChangeListener { override fun onLayoutChange( view: View, left: Int, top: Int, right: Int, bottom: Int, oldLeft: Int, oldTop: Int, oldRight: Int, oldBottom: Int ) { viewModel.notificationStackChanged() } } val burnInParams = MutableStateFlow(BurnInParameters()) val viewState = ViewStateAccessor( Loading Loading @@ -170,6 +188,7 @@ object SharedNotificationContainerBinder { } insets } view.addOnLayoutChangeListener(layoutChangeListener) return object : DisposableHandle { override fun dispose() { Loading @@ -177,6 +196,7 @@ object SharedNotificationContainerBinder { disposableHandleMainImmediate.dispose() controller.setOnHeightChangedRunnable(null) view.setOnApplyWindowInsetsListener(null) view.removeOnLayoutChangeListener(layoutChangeListener) } } } Loading