|
|
|
@ -93,18 +93,20 @@ class AudioPlayActivity : VMBaseActivity<AudioPlayViewModel>(R.layout.activity_a |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private fun upCover(path: String) { |
|
|
|
|
ImageLoader.load(this, path) |
|
|
|
|
private fun upCover(path: String?) { |
|
|
|
|
path?.let { |
|
|
|
|
ImageLoader.load(this, it) |
|
|
|
|
.placeholder(R.drawable.image_cover_default) |
|
|
|
|
.error(R.drawable.image_cover_default) |
|
|
|
|
.centerCrop() |
|
|
|
|
.into(iv_cover) |
|
|
|
|
ImageLoader.load(this, path) |
|
|
|
|
ImageLoader.load(this, it) |
|
|
|
|
.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) |
|
|
|
|