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

Commit caed3833 authored by Brad Hinegardner's avatar Brad Hinegardner
Browse files

Avoid using the same previewMode logic between lockscreen and WPP

Previously `previewMode` lived inside `KeyguardInteractor` which is a SysuiSingleton.
This caused issues as even though we had different copies of `KeyguardRootView` for lockscreen and WallpaperPicker, both Views were using the same value of previewMode, which is never explicitly disabled upon leaving WPP.

Split up the enabling of previewMode between the KeyguardRootView and the Quick affordances, as the KeyguardRootView doesn't need to know about the quick affordances.

Fixes: 296249943
Test: atest KeyguardQuickAffordancesCombinedViewModel.kt
Test: atest KeyguardRootViewModelTest.kt
Test: manual -- go to WPP and shortcuts customization, leave, go back to lockscreen. The UI is now different between them as intended
Change-Id: I81a059002e179bb80be40617ce427d595b58b616
parent 9fbfb01e
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