-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: bitmap wallpaper setting on main thread (#132)
* fix: bitmap wallpaper setting on main thread * update: formatting Co-authored-by: Kartik Sharma <[email protected]> * update: formatting Co-authored-by: Kartik Sharma <[email protected]> * update: handle wallpaper bitmap setting exception * update: method name, if-else formatting * fix: observing to bitmap result forever Co-authored-by: Vipul Asri <[email protected]> Co-authored-by: Kartik Sharma <[email protected]>
- Loading branch information
1 parent
c7c6b26
commit b758a17
Showing
3 changed files
with
124 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
package com.b_lam.resplash.di | ||
|
||
import android.app.WallpaperManager | ||
import com.b_lam.resplash.util.NotificationManager | ||
import com.b_lam.resplash.util.download.DownloadManagerWrapper | ||
import org.koin.android.ext.koin.androidApplication | ||
import org.koin.android.ext.koin.androidContext | ||
import org.koin.dsl.module | ||
|
||
val managerModule = module { | ||
|
||
single(createdAtStart = true) { NotificationManager(androidContext()) } | ||
single { DownloadManagerWrapper(androidContext()) } | ||
single { WallpaperManager.getInstance(androidApplication()) } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters