+0
−2
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
This is not needed and can lead to the following error: 1. QSPanel added a callback for tile A 2. CurrentTilesInteractor processes tiles and removes all callbacks from A. After that, the list of tiles didn't change. As it's backed by a StateFlow, consumers don't get notified of a change (they don't need to, the list is the same). 3. QSPanelControllerBase doesn't get a notified so it doesn't re-add the callback. The error is not usually observable, as it requires the tile setting to change but the list of actual tiles not to change, though certain scenarios could make it happen (like restoring from backup with tiles that are not available, or changing tiles through adb). Also, have QSPanelControllerBase only remove the associated callback (and not all of them) onViewDetached. Flag: QS_PIPELINE_NEW_HOST Fixes: 282978588 Test: atest com.android.systemui.qs Change-Id: I6451c80a7595bd3b3614de7b2f2870f6e97ba9d1