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

Skip to content
Commit 9411d73d authored by Fabián Kozynski's avatar Fabián Kozynski Committed by Fabian Kozynski
Browse files

Separate the default label from the app provided

In Tile, we had a single label field. This could be set either:
* By the app, if they wanted a custom label
* By SystemUI, if there was no label, with the label from ServiceInfo.

This could cause a race condition, as we had no way of distinguishing
who had set it, so a change in locale would have the old default label
overwrite the new one.

With this change, separate these fields. However, we maintain the API
contract of `Tile.getLabel` returning what the UI will display (as it
was before this change).

Test: atest TileTest
Test: atest CtsTileServiceTestCases android.host.systemui
Test: atest CustomTileTest CustomTileStatePersisterTest
Fixes: 293811062
Change-Id: I700c1ac0160f637552e7106d43b6c8abeec41729
parent 513dea53
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