pull/2114/head
kunfei 2 years ago
parent 47f12ba03d
commit 36acb3b4b7
  1. 3
      app/src/main/java/io/legado/app/help/config/ReadBookConfig.kt

@ -560,6 +560,9 @@ object ReadBookConfig {
} }
fun curBgDrawable(width: Int, height: Int): Drawable { fun curBgDrawable(width: Int, height: Int): Drawable {
if (width == 0 || height == 0) {
return ColorDrawable(appCtx.getCompatColor(R.color.background))
}
var bgDrawable: Drawable? = null var bgDrawable: Drawable? = null
val resources = appCtx.resources val resources = appCtx.resources
try { try {

Loading…
Cancel
Save