summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Fabián Kozynski <kozynski@google.com> 2023-10-04 12:19:18 -0400
committer Fabián Kozynski <kozynski@google.com> 2023-10-04 14:46:57 -0400
commit3af92031cfe5b4132fff0bf5993662538f666216 (patch)
tree741726bd9d13776d17085d418c4d73a8f94258dc /libs/androidfw/FileStream.cpp
parent86b02274fffc0ea0f513071a22d444b6b65d9288 (diff)
Move QSPanelControllerBase callback to init/destroy
Before this change, attaching and dettaching QSFragment would trigger tiles re-fetching and recreating of callbacks and views. In order to prepare for scenes (where we may want to dettach and re-attach QSImpl), this does the following two changes: * The callback to QSHost is added in `init` and removed in `destroy`. * If the tiles collection is exactly the same as the current one (same QSTile objects, in same order), do not re-create the TileRecord and views. Bug: 280887232 Test: manual Test: atest QSPanelControllerBaseTest Test: heapdump, no leftover QSImpl after recreating QSFragmentLegacy Change-Id: Ie27d23c34cbb4c8d645d6cd3df5d0812ab6ff70a
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions