Skip to content
Commit 6cfcecc8 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Do not skip wake-and-unlock animation

When systemui requests WAKE_AND_UNLOCK (from standalone fingerprint
sensor), DisplayPolicy will have mScreenOnEarly but no mScreenOnFully
yet. If the animation is skipped, a snapshot starting window with
fixed rotation transform won't be notified by finishing transition to
restore the state. Also because the screen will be fully on, the
animation can still be visible.

This change passes ignoreScreenOn with considering isKeyguardGoingAway.
And refactor the logic to a method deferCommitVisibilityChange so it
is easier to read. Also add a quick path for shell transition because
if it is enabled, isTransitionSet and isAnimating(TYPE_RECENTS) will
always be false.

Fixes: 258383126
Test: atest ActivityRecordTests#testSetVisibility_invisibleToVisible

Change-Id: I2519eb558262a9f9126ed093448a9a6cefb76faa
parent 8d6647d4
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