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

Commit bd6a5501 authored by Selim Cinek's avatar Selim Cinek Committed by android-build-merger
Browse files

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

am: 24907e82

Change-Id: Ic07170c3e16424e09a72e6b54bc13cfc176abc7c
parents 1d65a7ea 24907e82
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) {