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

Commit dbf71d8c 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...

Merge "Unset the notification expansion state when fully hidden" into qt-r1-dev am: 24907e82 am: 5f2f141d
am: bce301e1

Change-Id: Ica4a25b61f5c5493ec4e5a3e533dd6847f109bfb
parents 48c0a998 bce301e1
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) {