diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/base/activity/BaseRxActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/base/activity/BaseRxActivity.kt index 5137d026d9..ef074f6199 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/base/activity/BaseRxActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/base/activity/BaseRxActivity.kt @@ -1,16 +1,21 @@ package eu.kanade.tachiyomi.ui.base.activity import android.content.Context +import android.content.res.Resources import android.os.Bundle import androidx.lifecycle.lifecycleScope +import eu.kanade.tachiyomi.data.preference.PreferencesHelper import eu.kanade.tachiyomi.ui.base.presenter.BasePresenter import eu.kanade.tachiyomi.ui.security.SecureActivityDelegate import eu.kanade.tachiyomi.util.system.LocaleHelper +import eu.kanade.tachiyomi.util.system.getThemeWithExtras import nucleus.view.NucleusAppCompatActivity +import uy.kohesive.injekt.injectLazy abstract class BaseRxActivity

> : NucleusAppCompatActivity

() { val scope = lifecycleScope + private val preferences by injectLazy() override fun attachBaseContext(newBase: Context) { super.attachBaseContext(LocaleHelper.createLocaleWrapper(newBase)) @@ -25,4 +30,8 @@ abstract class BaseRxActivity

> : NucleusAppCompatActivity