From 1d768c150a546929f39b58821a5132b2c33d9d1a Mon Sep 17 00:00:00 2001 From: 383bjz82bu <383bjz82bu@fd.com> Date: Sat, 13 Jun 2020 17:35:45 +0000 Subject: [PATCH] reset edit .gitignore --- .gitignore | 8 -------- .../java/io/legado/app/ui/main/my/MyFragment.kt | 13 +++++++++++-- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index e9f1bfd7b..700c700fe 100644 --- a/.gitignore +++ b/.gitignore @@ -13,11 +13,3 @@ node_modules/ /app/google /app/gradle.properties package-lock.json - -*__gen.go -*__ignore.go -*.swp -*.swo -~i_* -ig_* -zzzig_* 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 de219c0aa..da6dde167 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 @@ -122,8 +122,17 @@ class MyFragment : BaseFragment(R.layout.fragment_my_config), FileChooserDialog. } "recordLog" -> LogUtils.upLevel() PreferKey.einkMode -> { - postEvent(EventBus.RECREATE, "") - ReadBookConfig.pageAnim = 4 + //既然是 E-Ink 模式,为什么不一步到位呢 + if (AppConfig.isEInkMode) { + ReadBookConfig.pageAnim = 4 + putPrefInt("colorPrimary", getCompatColor(R.color.white)) + putPrefInt("colorAccent", getCompatColor(R.color.black)) + putPrefInt("colorBackground", getCompatColor(R.color.white)) + putPrefInt("colorBottomBackground", getCompatColor(R.color.white)) + AppConfig.isNightTheme = false + App.INSTANCE.applyDayNight() + postEvent(EventBus.RECREATE, "") + } } } }