From f6ebd98f5001d9a7086e8333989c02044c4f4994 Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Thu, 15 Jul 2021 22:29:56 -0400 Subject: [PATCH] Fixed reader background not following amoled Fixes #930 --- .../kanade/tachiyomi/ui/base/activity/BaseRxActivity.kt | 9 +++++++++ 1 file changed, 9 insertions(+) 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