mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix: Tell splash state to stop being lazy
We need the class as soon as possible. It being lazy might be the reason why there's a race condition.
This commit is contained in:
parent
3d7b6b88be
commit
79929b395e
1 changed files with 3 additions and 1 deletions
|
@ -20,6 +20,8 @@ import eu.kanade.tachiyomi.util.system.dpToPx
|
|||
import eu.kanade.tachiyomi.util.system.getThemeWithExtras
|
||||
import eu.kanade.tachiyomi.util.system.setLocaleByAppCompat
|
||||
import eu.kanade.tachiyomi.util.system.setThemeByPref
|
||||
import uy.kohesive.injekt.Injekt
|
||||
import uy.kohesive.injekt.api.get
|
||||
import uy.kohesive.injekt.injectLazy
|
||||
import yokai.domain.SplashState
|
||||
import android.R as AR
|
||||
|
@ -31,7 +33,7 @@ abstract class BaseActivity<VB : ViewBinding> : AppCompatActivity() {
|
|||
val isBindingInitialized get() = this::binding.isInitialized
|
||||
|
||||
private var updatedTheme: Resources.Theme? = null
|
||||
internal val splashState: SplashState by injectLazy()
|
||||
internal val splashState: SplashState = Injekt.get()
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
setLocaleByAppCompat()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue