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 f7ab4f104..8cfac8084 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,9 +1,11 @@ package eu.kanade.tachiyomi.ui.base.activity +import android.content.Context import android.os.Bundle import androidx.viewbinding.ViewBinding import eu.kanade.tachiyomi.ui.base.presenter.BasePresenter import eu.kanade.tachiyomi.ui.security.SecureActivityDelegate +import eu.kanade.tachiyomi.util.system.LocaleHelper import nucleus.view.NucleusAppCompatActivity abstract class BaseRxActivity> : NucleusAppCompatActivity

() { @@ -13,6 +15,10 @@ abstract class BaseRxActivity> : NucleusA lateinit var binding: VB + override fun attachBaseContext(newBase: Context) { + super.attachBaseContext(LocaleHelper.createLocaleWrapper(newBase)) + } + override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/base/activity/BaseViewBindingActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/base/activity/BaseViewBindingActivity.kt index 1520ccfa8..29f041b5a 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/base/activity/BaseViewBindingActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/base/activity/BaseViewBindingActivity.kt @@ -1,10 +1,8 @@ package eu.kanade.tachiyomi.ui.base.activity -import android.content.Context import android.os.Bundle import androidx.viewbinding.ViewBinding import eu.kanade.tachiyomi.ui.security.SecureActivityDelegate -import eu.kanade.tachiyomi.util.system.LocaleHelper abstract class BaseViewBindingActivity : BaseThemedActivity() { @@ -13,10 +11,6 @@ abstract class BaseViewBindingActivity : BaseThemedActivity() @Suppress("LeakingThis") private val secureActivityDelegate = SecureActivityDelegate(this) - override fun attachBaseContext(newBase: Context) { - super.attachBaseContext(LocaleHelper.createLocaleWrapper(newBase)) - } - override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState)