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

Commit db0f0d36 authored by Matt Pietal's avatar Matt Pietal
Browse files

Build in shade support into KeyguardTransitionAnimationFlow

ShadeDependentFlows was useful but inefficient, as every instance was
using `sample` on the same data. More importantly, there was no
guarantee of ordering with emission of the STARTED event, and it was
possible to capture the shade state after the animation had started.

Adds a new `sharedFlowWithShade` method that captures the shade/qs
state on animation start, and passes that value back to onStep,
onCancel, and onFinish so animations can make the right decision.

Test: atest KeyguardTransitionAnimationFlowTest
Bug: 392209635
Flag: EXEMPT performance fix
Change-Id: If4024b6691d0408557aae78f8e0bb7ce016ad4b0
parent d6ed8077
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment