packages/SystemUI/multivalentTests/src/com/android/systemui/model/SysUIStateDispatcherTest.kt
0 → 100644
+87
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
After this change, any listener registered to any SysUIState instance will receive updates for all display IDs. The logic to handle callbacks is removed from SysUIState and moved to the dispatcher (that is also thread safe now). This is needed as various parts of the code will change the state for different displays, and we want each listener to get events for all displays. In a follow up it's possible to entirely remove callback registration logic from SysUIState and have it only from a repository, but it was a bigger refactor, and I prefer to keep this cl small. Bug: 362719719 Bug: 398011576 Test: SysUIStateDispatcherTest Flag: com.android.systemui.shade_window_goes_around Change-Id: I465b207a3d2ab28d7cd66f09e98c013160532d1d