summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Jordan Demeulenaere <jdemeulenaere@google.com> 2024-08-29 15:55:11 +0200
committer Jordan Demeulenaere <jdemeulenaere@google.com> 2024-08-30 15:40:08 +0200
commit456be2c381c1414b9dacd139b098765103d33b02 (patch)
treeb0157f43b1347376fdb4b874a4935c8c359300a6 /libs/androidfw/FileStream.cpp
parent51085f467a92c0320326fc86af20b5f8583b0c25 (diff)
Clean up STL transitions coroutine management
This CL cleans up the scoping of the coroutines involved in the transitions of a SceneTransitionLayoutState. This CL changes the main API to start a transition: MutableSTLState.startTransition() is now a suspend function which: 1. Sets the transition as the current STLState.transitionState. 2. Runs the suspend fun run() method of the transition. 3. Finishes the transition when the transition is done running. Doing this makes it easier to correctly scope a transition animation and removes the need to call finishTransition() when a transition is done. This CL also renames Transition.finish() to Transition.freezeAndAnimateToCurrentState(). Bug: 362727477 Test: atest PlatformComposeSceneTransitionLayoutTests Flag: com.android.systemui.scene_container Change-Id: I5455dcd75b6cc9d79dcb8afb8dd6ddd6f9bfcdff
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions