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

Commit 889716ad authored by Fabián Kozynski's avatar Fabián Kozynski
Browse files

Fix resetTiles not marking CustomTile as removed

When calling `CustomTileInteractor.resetTiles`, any custom tiles that
are removed should be marked as removed in the repository (and
onTileRemoved` should be sent to the tile). This was missing, and was
causing the tiles not get `onTileAdded` when they were added again.

This change fixes that. Additionally, we add an upgrade step for
CustomTileAddedRepository to mark tiles that at the time of the upgrade
are not present as removed.

Test: atest com.android.systemui.qs.pipeline
Test: manual, reset tiles
Test: manual, observe upgrade state
Flag: com.android.systemui.reset_tiles_removes_custom_tiles
Fixes: 431235255

Change-Id: If8186dc00f4ec2718e48d43ea71f800a860a06d1
parent 31c4658f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment