summaryrefslogtreecommitdiff
path: root/api/coverage/tools
diff options
context:
space:
mode:
author Nicolo' Mazzucato <nicomazz@google.com> 2024-08-05 12:55:43 +0000
committer Nicolo' Mazzucato <nicomazz@google.com> 2024-08-05 13:02:55 +0000
commitcaf6457be7990d82a8ffff6a426db3be0409bbeb (patch)
treee094dab2c27e0ddd292762d5dbc8797be8aa2860 /api/coverage/tools
parent06bb60b529b4077a8de8bfd9fa59498aa95c7857 (diff)
Initialize enabledDisplays with the correct displays
It could have happened that the list of displays was not up to date when DisplayRepository was being initialized. This makes a binder call to get them from the ui thread once DisplayRepository class is instantiated to ensure correctness immediately (and not eventual, as before) It would be possible to also have correctness immediately avoiding the binder call using SharedFlows, but we banned them due to performance concerns. The ui thread binder call here happens once per process start, so it shouldn't be that problematic. Fixes: 355364683 Test: DisplayRepositoryTest Flag: com.android.systemui.enable_efficient_display_repository Change-Id: If379d754fa378eaaeddb29fc5f94f5536f0b5c01
Diffstat (limited to 'api/coverage/tools')
0 files changed, 0 insertions, 0 deletions