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

Skip to content
Commit c1bda788 authored by Brad Hinegardner's avatar Brad Hinegardner
Browse files

Remove need for isComplete, but still always send final animation value

Due to not using a SharedFlow anymore, there is a possibility for
collectors of this flow to not receive the final value due to the
outer-scoped isComplete value. The possibility of this increases
if there are multiple consumers of the same animation.

Removing isComplete removes this possibility. The final value will
now eventually show up to all consumers, but it is not guaranteed
to be arrive to all of them at the same time.

DistinctUntilChanged prevents the final value from being repeatedly
emitted to the consumers.

Bug: 318543679
Flag: NONE
Test: atest KeyguardTransitionAnimationFlowTest.kt
Test: manual - observe final values coming in to both shortcuts with keyguard_bottom_area_refactor flag turned on
Change-Id: I781f90cb80fcf58bec69c258a206ab717bdd2022
parent b1b2c84c
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