From 3f1399b48a17c3762bfb390338d85ac55024d842 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 28 Aug 2019 19:54:09 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/help/ReadBookConfig.kt | 4 ++-- .../java/io/legado/app/ui/readbook/config/ReadStyleDialog.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/io/legado/app/help/ReadBookConfig.kt b/app/src/main/java/io/legado/app/help/ReadBookConfig.kt index 46a41c664..d2a9565ed 100644 --- a/app/src/main/java/io/legado/app/help/ReadBookConfig.kt +++ b/app/src/main/java/io/legado/app/help/ReadBookConfig.kt @@ -116,12 +116,12 @@ object ReadBookConfig { else Color.parseColor(textColor) } - private fun bgStr(): String { + fun bgStr(): String { return if (App.INSTANCE.isNightTheme) bgStrNight else bgStr } - private fun bgType(): Int { + fun bgType(): Int { return if (App.INSTANCE.isNightTheme) bgTypeNight else bgType } diff --git a/app/src/main/java/io/legado/app/ui/readbook/config/ReadStyleDialog.kt b/app/src/main/java/io/legado/app/ui/readbook/config/ReadStyleDialog.kt index ea2d59215..08e730014 100644 --- a/app/src/main/java/io/legado/app/ui/readbook/config/ReadStyleDialog.kt +++ b/app/src/main/java/io/legado/app/ui/readbook/config/ReadStyleDialog.kt @@ -216,9 +216,9 @@ class ReadStyleDialog : DialogFragment() { else -> bg0 } ReadBookConfig.getConfig(i).apply { - when (bgType) { + when (bgType()) { 2 -> { - ImageLoader.load(requireContext(), bgStr) + ImageLoader.load(requireContext(), bgStr()) .centerCrop() .setAsFile(iv) }