This commit is contained in:
kunfei
2022-07-31 21:09:43 +08:00
parent 47f12ba03d
commit 36acb3b4b7

View File

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