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 c2114b9b6..48c9bc27b 100644 --- a/app/src/main/java/io/legado/app/help/ReadBookConfig.kt +++ b/app/src/main/java/io/legado/app/help/ReadBookConfig.kt @@ -170,11 +170,11 @@ object ReadBookConfig { 0 -> bgDrawable = ColorDrawable(Color.parseColor(bgStr())) 1 -> bgDrawable = Drawable.createFromStream( - App.INSTANCE.assets.open("bg" + File.separator + bgStr), + App.INSTANCE.assets.open("bg" + File.separator + bgStr()), "bg" ) else -> runCatching { - bgDrawable = Drawable.createFromPath(bgStr) + bgDrawable = Drawable.createFromPath(bgStr()) } } }