From a3090e62f5491d1a50bb97206dc5534e086959db Mon Sep 17 00:00:00 2001 From: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com> Date: Sat, 31 Jul 2021 05:13:50 +0700 Subject: [PATCH] Fix reader activity not using preferred language (#5630) --- .../eu/kanade/tachiyomi/ui/base/activity/BaseRxActivity.kt | 6 ++++++ .../tachiyomi/ui/base/activity/BaseViewBindingActivity.kt | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) 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 f7ab4f104a..8cfac8084a 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 1520ccfa8c..29f041b5a9 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)