fix: Hopefully fix race condition

This commit is contained in:
ziro 2024-02-11 08:14:42 +07:00
parent 580cf710ed
commit d05c0dbeda
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
4 changed files with 17 additions and 9 deletions

View file

@ -20,6 +20,7 @@ import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.ProcessLifecycleOwner
import androidx.lifecycle.lifecycleScope
import androidx.multidex.MultiDex
import dev.yokai.domain.AppState
import eu.kanade.tachiyomi.appwidget.TachiyomiWidgetManager
import eu.kanade.tachiyomi.data.image.coil.CoilSetup
import eu.kanade.tachiyomi.data.notification.Notifications
@ -47,6 +48,8 @@ open class App : Application(), DefaultLifecycleObserver {
val preferences: PreferencesHelper by injectLazy()
val state: AppState by lazy { AppState() }
private val disableIncognitoReceiver = DisableIncognitoReceiver()
@SuppressLint("LaunchActivityFromNotification")