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) }