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

Skip to content
Commit 400abd93 authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

[CS] 3/N: Move KeyguardViewMediator to WallpaperRepository.

Note: KeyguardViewMediator gets recreated on user switch because it's
part of a Dagger injection chain into CustomizationProvider, and
CustomizationProvider is a content provider that's re-created for each user.

However, CentralSurfacesImpl ever notifies only the *original*
KeyguardViewMediator, *not* any of the new ones. I've verified that with
this change, the original KVM is still the *only* instance receiving
wallpaper updates. This is because KVM only starts collecting on
WallpaperRepository in KVM#setupLocked, which is triggered via
CoreStartable#start, which is only triggered for the original process.

Bug: 277764509
Bug: 277762009
Test: manual: Verified via logging that KeyguardViewMediator still
receives wallpaper updates from WallpaperRepository
Test: atest KeyguardViewMediatorTest

Change-Id: I14088f422c38fc95083b7f42e878e69b879f499f
parent 4894e35f
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