diff options
| author | 2023-08-02 13:23:32 -0400 | |
|---|---|---|
| committer | 2023-08-14 13:16:31 +0000 | |
| commit | 9411d73d9caa464c123eedb83910627d0af35aa0 (patch) | |
| tree | 279fbf4232a8af9f6bf2560df69c8c3bde0229b8 /libs/androidfw/ObbFile.cpp | |
| parent | 513dea53321dcbd3de456d7aa2e4f3b58c0af5c8 (diff) | |
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
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions