pull/49/head
kunfei 5 years ago
parent 3865e6dc71
commit 1784ca0abb
  1. 6
      app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt

@ -94,19 +94,17 @@ class AudioPlayActivity : VMBaseActivity<AudioPlayViewModel>(R.layout.activity_a
}
private fun upCover(path: String?) {
path?.let {
ImageLoader.load(this, it)
ImageLoader.load(this, path)
.placeholder(R.drawable.image_cover_default)
.error(R.drawable.image_cover_default)
.centerCrop()
.into(iv_cover)
ImageLoader.load(this, it)
ImageLoader.load(this, path)
.thumbnail(defaultCover())
.centerCrop()
.apply(RequestOptions.bitmapTransform(BlurTransformation(this, 25)))
.into(iv_bg)
}
}
private fun defaultCover(): RequestBuilder<Drawable> {
return ImageLoader.load(this, R.drawable.image_cover_default)

Loading…
Cancel
Save