summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Fabián Kozynski <kozynski@google.com> 2023-06-28 13:14:56 -0400
committer Fabián Kozynski <kozynski@google.com> 2023-08-11 14:59:14 -0400
commit315851d8c227e30f5bd70a14f87c356b5a99f7f2 (patch)
treed58ae4506957397265bf8494421ced142875f570 /libs/hwui/FrameInfoVisualizer.cpp
parent309528d9a8aa002739ede03ca4abbef3144e985c (diff)
Fix race condition in TileSpecRepository
Before this change, after a factory reset, the list of tiles will be empty. While CurrentTilesInteractor was processing the first emit of the flow (default tiles), AutoAdd will try to add tiles to whatever was in Settings (empty list), causing only those tiles to be present. This change introduces a local cache in TileSpecSettingsRepository so changes are applied to its value (last known value). Test: manual, check tiles after factory reset Test: atest TileSpecSettingsRepositoryTest CurrentTilesInteractorImplTest Fixes 289003025 Change-Id: I05c25ffa9206c98533647f641184dcaa819925e7
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions