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

Commit 1391d00b authored by George Lin's avatar George Lin
Browse files

Lazily inject WallpaperInteractor (2/2)

Since ColorCustomizationManager seems to be heavy to instantiate, and
WallpaperInteractor needs it, we only lazily inject it when needed.

Test: Make sure that WallpaperInteractor abd ColorCustomizationManager
Test: are not instantiated when injection graph created.
Bug: 311537830
Flag: None
Change-Id: I78e012bc474bdd5bd8c4fc3bda92c5d566a23b8e
parent a175c401
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -201,7 +201,7 @@ internal constructor(

    override fun getWallpaperInteractor(context: Context): WallpaperInteractor {
        if (getFlags().isMultiCropEnabled() && getFlags().isMultiCropPreviewUiEnabled()) {
            return injectedWallpaperInteractor
            return injectedWallpaperInteractor.get()
        }

        val appContext = context.applicationContext