From 6642ab539be289c9038daa4becaae567864273e5 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 31 Aug 2019 13:34:38 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/help/ReadBookConfig.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 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 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()) } } }