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

Commit fbc74686 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: I9acf8ce18af1876a6b2a2b021411fd51f51ccf01
parent f67d9630
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