Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3af92031 authored by Fabián Kozynski's avatar Fabián Kozynski
Browse files

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
parent 86b02274
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment