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

Skip to content
Commit 315851d8 authored by Fabián Kozynski's avatar Fabián Kozynski
Browse files

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
parent 309528d9
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