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

Skip to content
Commit 9e7ee4ab authored by Alejandro Nijamkin's avatar Alejandro Nijamkin
Browse files

[flexiglass] Improved structured concurrency in SceneContainer.

In an effort to improve performance by leveraging structured
concurrency:

1. Changed Scene.destinationScenes from StateFlow to just Flow
2. Changed SceneContainer to collect only the destinationScenes of the
   current scene
3. Added Scene.activate to hydrate scenes
4. Changed SceneContainer to call activate on the current scene and
   cancel the one that was previously activated
5. Removed @Application CoroutineScope from scene view-model classes
   that didn't need it anymore (more cleanup to come)

Bug: 354270224
Test: manually ran a smoke test on Flexiglass: can change scenes to
shade, QS, and bouncer over lockscreen, can unlock, can change to shade
and QS, and re-lock.
Flag: com.android.systemui.scene_container

Change-Id: I3dfee72630322e0cb93ac76324be9d935e3a67f1
parent 1c80a98d
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