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

Skip to content
Commit b93b830a authored by Jordan Demeulenaere's avatar Jordan Demeulenaere
Browse files

Enforce that STLState is mutated on the right thread

SceneTransitionLayoutState currently does not do any synchronization
to support mutation from different threads. Usually this is not an issue
because most state changes naturally happen on the main thread, but I
noticed that it was causing some flakiness issues in tests given that
those run in a thread different than the main thread.

This CL enforces that all mutations of a STLState are done in the same
thread in which the state was created. If that STLState is used by a
SceneTransitionLayout, we also check that the thread is the same (which
is usually the main thread).

Bug: 290930950
Test: atest PlatformComposeSceneTransitionLayoutTests
Flag: com.android.systemui.scene_container
Change-Id: Ia928cc43305f4c226358dabd74fafee9d340fcc5
parent d8ce27e6
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