summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Jordan Demeulenaere <jdemeulenaere@google.com> 2025-02-28 13:59:08 +0100
committer Fabián Kozynski <kozynski@google.com> 2025-03-03 12:19:14 -0500
commit7e95ede5a7153a816eb04a9e2f28b1c7482c16ab (patch)
treedcd3c1968e6e6694b68ecb650549903d26e30b87 /libs/androidfw/AssetsProvider.cpp
parentc474a3cc73deab614ecc4d5c25f0c20ad0984746 (diff)
Always compose QS fragment
This makes it so opening the shade or expanding QS doesn't require composing all components. We limit the tiles to listen only when the content should be visible (and for expanded QS, also when we are not fully collapsed). This starting to listen causes a small recomposition, but only of the tiles, not the full grid. Tiles not listening will prevent their UI from updating. Notice that other components are not gated by whether we are visible. In particular: * Brightness is always composed, which means its viewmodel is always collecting. But we don't expect a large issue here. * Media is explicitly not gated. This guarantees that as soon as a media player should be visible, it's composed and measured. Bug: 389985793 Bug: 399825091 Test: Manual, perfetto shows shorter recomposition on opening shade and expanding Test: Manual, dump QSLog and see that tiles are listening at the correct points Flag: com.android.systemui.qs_ui_refactor_compose_fragment Flag: com.android.systemui.always_compose_qs_ui_fragment Change-Id: I07022bbc0266bf3f1438efcf5759743c9e254f31
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions