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

Skip to content
Commit 9e843a54 authored by Matt Pietal's avatar Matt Pietal
Browse files

Never ignore OCCLUDED transition

In an earlier attempt to cleanup some transition code, a check was
added to validate a transition request to make sure the "FROM" value
matched the existing state... a good idea. However, when exiting AOD
to launch camera a race condition existed that would result in
FromDreamingTransitionInteractor starting the transition
LOCKSCREEN->OCCLUDED. Previous code made a special case for this but
the new code ignored it, resulting in AOD over camera.

The new code updates conditions from both LOCKSCREEN and DREAMING to
make sure the device goes to OCCLUDED.

Fixes: 300406718
Test: atest KeyguardTransitionScenariosTest
Test: Tablet - Launch Home Controls over Dream, enter and exit
dreaming from LOCKSCREEN or GONE
Test: Phone - Test camera launches from AOD/DREAMING/LOCKSCREEN states

Change-Id: Ia3a90e650b34b5f480753b14398449cf51c42ce3
parent ef18eed3
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