Use immutable collections in presentation-widget module

(cherry picked from commit 3c3b09209c7ea5729c29b9c3ad414c09b2bb9636)
This commit is contained in:
arkon
2023-11-11 18:31:27 -05:00
committed by Jobobby04
parent 5d565f436f
commit b5e1db1973
6 changed files with 13 additions and 5 deletions
+2 -2
View File
@@ -69,7 +69,7 @@ import logcat.LogPriority
import logcat.LogcatLogger
import org.conscrypt.Conscrypt
import tachiyomi.core.util.system.logcat
import tachiyomi.presentation.widget.TachiyomiWidgetManager
import tachiyomi.presentation.widget.WidgetManager
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
import uy.kohesive.injekt.injectLazy
@@ -150,7 +150,7 @@ class App : Application(), DefaultLifecycleObserver, ImageLoaderFactory {
setAppCompatDelegateThemeMode(Injekt.get<UiPreferences>().themeMode().get())
// Updates widget update
with(TachiyomiWidgetManager(Injekt.get(), Injekt.get())) {
with(WidgetManager(Injekt.get(), Injekt.get())) {
init(ProcessLifecycleOwner.get().lifecycleScope)
}