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
Loading
Please register or sign in to comment