From 018dfbd2ad581a9c793ee7052b65dbcf6b4ad946 Mon Sep 17 00:00:00 2001 From: Modificator Date: Thu, 25 Jun 2020 00:50:04 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E9=BB=98=E8=AE=A4=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E5=88=87=E6=8D=A2=20E-Ink=20=E6=A8=A1=E5=BC=8F=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E8=8A=B1=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/ui/main/my/MyFragment.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/main/my/MyFragment.kt b/app/src/main/java/io/legado/app/ui/main/my/MyFragment.kt index 806d79942..9caff37fe 100644 --- a/app/src/main/java/io/legado/app/ui/main/my/MyFragment.kt +++ b/app/src/main/java/io/legado/app/ui/main/my/MyFragment.kt @@ -16,6 +16,7 @@ import io.legado.app.constant.PreferKey import io.legado.app.help.AppConfig import io.legado.app.help.ReadBookConfig import io.legado.app.lib.theme.ATH +import io.legado.app.lib.theme.ThemeStore import io.legado.app.service.WebService import io.legado.app.ui.about.AboutActivity import io.legado.app.ui.about.DonateActivity @@ -127,10 +128,10 @@ class MyFragment : BaseFragment(R.layout.fragment_my_config), FileChooserDialog. if (AppConfig.isEInkMode) { //保存开启前的设置 putPrefInt(PreferKey.lastPageAnim, ReadBookConfig.pageAnim) - putPrefInt(PreferKey.cLPrimary, getPrefInt(PreferKey.cPrimary)) - putPrefInt(PreferKey.cLAccent, getPrefInt(PreferKey.cAccent)) - putPrefInt(PreferKey.cLBackground, getPrefInt(PreferKey.cBackground)) - putPrefInt(PreferKey.cLBBackground, getPrefInt(PreferKey.cBBackground)) + putPrefInt(PreferKey.cLPrimary, getPrefInt(PreferKey.cPrimary, ThemeStore.primaryColor())) + putPrefInt(PreferKey.cLAccent, getPrefInt(PreferKey.cAccent, ThemeStore.accentColor())) + putPrefInt(PreferKey.cLBackground, getPrefInt(PreferKey.cBackground, ThemeStore.backgroundColor())) + putPrefInt(PreferKey.cLBBackground, getPrefInt(PreferKey.cBBackground, ThemeStore.bottomBackground())) putPrefString( PreferKey.lastThemeMode, getPrefString(PreferKey.themeMode) ?: "0"