Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/NotificationWakeUpCoordinator.kt +11 −0 Original line number Diff line number Diff line Loading @@ -147,6 +147,17 @@ class NotificationWakeUpCoordinator @Inject constructor( mHeadsUpManagerPhone.addListener(this) statusBarStateController.addCallback(this) mDozeParameters = DozeParameters.getInstance(mContext) addListener(object : WakeUpListener { override fun onFullyHiddenChanged(isFullyHidden: Boolean) { if (isFullyHidden && mNotificationsVisibleForExpansion) { // When the notification becomes fully invisible, let's make sure our expansion // flag also changes. This can happen if the bouncer shows when dragging down // and then the screen turning off, where we don't reset this state. setNotificationsVisibleForExpansion(visible = false, animate = false, increaseSpeed = false) } } }); } fun setStackScroller(stackScroller: NotificationStackScrollLayout) { Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/NotificationWakeUpCoordinator.kt +11 −0 Original line number Diff line number Diff line Loading @@ -147,6 +147,17 @@ class NotificationWakeUpCoordinator @Inject constructor( mHeadsUpManagerPhone.addListener(this) statusBarStateController.addCallback(this) mDozeParameters = DozeParameters.getInstance(mContext) addListener(object : WakeUpListener { override fun onFullyHiddenChanged(isFullyHidden: Boolean) { if (isFullyHidden && mNotificationsVisibleForExpansion) { // When the notification becomes fully invisible, let's make sure our expansion // flag also changes. This can happen if the bouncer shows when dragging down // and then the screen turning off, where we don't reset this state. setNotificationsVisibleForExpansion(visible = false, animate = false, increaseSpeed = false) } } }); } fun setStackScroller(stackScroller: NotificationStackScrollLayout) { Loading