Skip to content
Commit 09770ff8 authored by Josh Tsuji's avatar Josh Tsuji
Browse files

Fix lockscreen jump-cutting in during screen off.

isKeyguardShowDelayed() only returns true if the screen off
animation is currently playing, but since wakefulness events
are dispatched async, it's possible that we try to handle the
pending lock in onFinishedGoingToSleep() before the screen off
animator actually starts running.

We can instead check whether we're intending to delay the
keyguard show, even if we haven't quite started the animation
yet.

Fixes: 256803842
Test: atest KeyguardViewMediatorTest
Test: atest UnlockedScreenOffAnimationControllerTest
Change-Id: I4fbac5c995d535d1fb962e5663e3d47d8f3bf00f
parent cc678f04
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