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

Commit 4dea7c4b authored by Diego Vela's avatar Diego Vela
Browse files

Move initial value to be on main thread initially.

Move initial value to be on the main thread. This is done to avoid
holding the WindowManagerGlobal lock.
Move all array modifications to use a handler and the main thread. This
avoids holding on to the lock while modifying the list of listeners. The
list is expected to be small so it should not cause issues.

Flag: android.view.flags.root_view_changed_listener
Bug: 394397033
Test: atest CtsViewTestCases:WindowInspectorTest
Change-Id: I66a6b61afeb1f22c98963d4713e6f7543dcbd3da
parent 0ff724a9
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