pull/32/head
kunfei 5 years ago
parent 902d9a1028
commit 6642ab539b
  1. 4
      app/src/main/java/io/legado/app/help/ReadBookConfig.kt

@ -170,11 +170,11 @@ object ReadBookConfig {
0 -> bgDrawable = ColorDrawable(Color.parseColor(bgStr())) 0 -> bgDrawable = ColorDrawable(Color.parseColor(bgStr()))
1 -> bgDrawable = 1 -> bgDrawable =
Drawable.createFromStream( Drawable.createFromStream(
App.INSTANCE.assets.open("bg" + File.separator + bgStr), App.INSTANCE.assets.open("bg" + File.separator + bgStr()),
"bg" "bg"
) )
else -> runCatching { else -> runCatching {
bgDrawable = Drawable.createFromPath(bgStr) bgDrawable = Drawable.createFromPath(bgStr())
} }
} }
} }

Loading…
Cancel
Save