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

Commit 32cbee86 authored by Michael Mikhail's avatar Michael Mikhail
Browse files

Update UMO host attachment before state change

Sets full shade transition amount to maximum before changing statusbar
state to shade_locked. This makes sure that UMO is attached to QS and is
not hanging in the IN_OVERLAY location.

Flag: NONE
Bug: 295269178
Test: Checked UMO when transitioning between LS and QS.
Change-Id: Ic74bcd9e5a2cdbb48712fb2c861c540425b8bd7e
parent 6c1c754c
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -458,6 +458,15 @@ constructor(
                    // the
                    // location of the previous state to still be up to date when the animation
                    // starts
                    if (
                        newState == StatusBarState.SHADE_LOCKED &&
                            oldState == StatusBarState.KEYGUARD &&
                            fullShadeTransitionProgress < 1.0f
                    ) {
                        // Since the new state is SHADE_LOCKED, we need to set the transition amount
                        // to maximum if the progress is not 1f.
                        setTransitionToFullShadeAmount(distanceForFullShadeTransition.toFloat())
                    }
                    statusbarState = newState
                    updateDesiredLocation()
                }