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

Skip to content
Commit 61e3eb3f authored by Matías Hernández's avatar Matías Hernández
Browse files

Make ZenModeRepository.modes a (single) StateFlow

Using regular Flows per caller means that every client of ZenModeRepository/ZenModeInteractor causes a new ContentObserver to be registered (and ZenModesBackend.getModes() to be called on each of those changes). With the current clients of the interactor, this could easily become 12 or more Binder calls per each zen change!

Bug: 403434908
Test: atest ZenModeRepositoryTest + manual
Flag: EXEMPT Simple (and urgent) performance improvement
Change-Id: I428ef6ef03eb331115d53f878e742542963a11a8
parent d4d65b17
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