core/java/android/view/ListenerWrapper.java
deleted100644 → 0
+0
−56
+146
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
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