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

Skip to content
Commit e18d71c6 authored by Ming-Shin Lu's avatar Ming-Shin Lu
Browse files

[Shell-trantition] Fix keyguard exit animation may no-op at first boot

When NotificationPanelView starts fade-out by swiping up, will notify
KeyguardUnlockAnimationController to call
onKeyguardExitRemoteAnimationFinished for starting keyguard going away
remote animation.

Unlike legacy animation that will call KeyguardViewMediater#handleHide
-> set KeyguardViewMediater#mHiding -> handleStartKeyguardExitAnimation,

with shell-transition, SystemUI will call through
KeyguardService#mExitAnimationRunner#onAnimationStart ->
KeyguardviewMediater#startKeyguardExitAnimation without setting mHiding
as true, that will unexpectedly cancel the animation sometimes.

Fix this unexpected keyguard hiding state handling and also add a unit
test for verifying this behavior.

Fix: 260100540
Test: manual as steps with enabling shell-transition
    1) Turn on device with power key to boot the device.
    2) After booted, swiping the lockscreen to home
    3) Verify if home surface was visible to user after unlocked
Test: atest KeyguardViewMediatorTest#\
       testStartKeyguardExitAnimation_expectSurfaceBehindRemoteAnimation
Change-Id: Ib927daea954bf1e9e6f6202a2b778c743e8bcd59
parent a40e02d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment