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