pull/1211/head
gedoor 3 years ago
parent bb8ff27b07
commit 1f3e13b169
  1. 3
      app/src/main/java/io/legado/app/help/ThemeConfig.kt

@ -59,6 +59,9 @@ object ThemeConfig {
val bgImage = BitmapUtils val bgImage = BitmapUtils
.decodeBitmap(bgCfg.first!!, metrics.widthPixels, metrics.heightPixels) .decodeBitmap(bgCfg.first!!, metrics.widthPixels, metrics.heightPixels)
?: return null ?: return null
if (bgCfg.second == 0) {
return bgImage
}
return BitmapUtils.stackBlur(bgImage, bgCfg.second.toFloat()) return BitmapUtils.stackBlur(bgImage, bgCfg.second.toFloat())
} }

Loading…
Cancel
Save