Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24907e82 authored by Selim Cinek's avatar Selim Cinek Committed by Android (Google) Code Review
Browse files

Merge "Unset the notification expansion state when fully hidden" into qt-r1-dev

parents 7acde277 8a66e692
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -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) {