|
@@ -1,9 +1,11 @@
|
|
package eu.kanade.tachiyomi.ui.base.activity
|
|
package eu.kanade.tachiyomi.ui.base.activity
|
|
|
|
|
|
|
|
+import android.content.Context
|
|
import android.os.Bundle
|
|
import android.os.Bundle
|
|
import androidx.viewbinding.ViewBinding
|
|
import androidx.viewbinding.ViewBinding
|
|
import eu.kanade.tachiyomi.ui.base.presenter.BasePresenter
|
|
import eu.kanade.tachiyomi.ui.base.presenter.BasePresenter
|
|
import eu.kanade.tachiyomi.ui.security.SecureActivityDelegate
|
|
import eu.kanade.tachiyomi.ui.security.SecureActivityDelegate
|
|
|
|
+import eu.kanade.tachiyomi.util.system.LocaleHelper
|
|
import nucleus.view.NucleusAppCompatActivity
|
|
import nucleus.view.NucleusAppCompatActivity
|
|
|
|
|
|
abstract class BaseRxActivity<VB : ViewBinding, P : BasePresenter<*>> : NucleusAppCompatActivity<P>() {
|
|
abstract class BaseRxActivity<VB : ViewBinding, P : BasePresenter<*>> : NucleusAppCompatActivity<P>() {
|
|
@@ -13,6 +15,10 @@ abstract class BaseRxActivity<VB : ViewBinding, P : BasePresenter<*>> : NucleusA
|
|
|
|
|
|
lateinit var binding: VB
|
|
lateinit var binding: VB
|
|
|
|
|
|
|
|
+ override fun attachBaseContext(newBase: Context) {
|
|
|
|
+ super.attachBaseContext(LocaleHelper.createLocaleWrapper(newBase))
|
|
|
|
+ }
|
|
|
|
+
|
|
override fun onCreate(savedInstanceState: Bundle?) {
|
|
override fun onCreate(savedInstanceState: Bundle?) {
|
|
super.onCreate(savedInstanceState)
|
|
super.onCreate(savedInstanceState)
|
|
|
|
|