From 1784ca0abba6f2f0ca910e05ff0c20df5f722615 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 29 Nov 2019 22:23:22 +0800 Subject: [PATCH] up --- .../legado/app/ui/audio/AudioPlayActivity.kt | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt b/app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt index 0b573d5eb..273971441 100644 --- a/app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt +++ b/app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt @@ -94,18 +94,16 @@ class AudioPlayActivity : VMBaseActivity(R.layout.activity_a } 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, it) - .thumbnail(defaultCover()) - .centerCrop() - .apply(RequestOptions.bitmapTransform(BlurTransformation(this, 25))) - .into(iv_bg) - } + ImageLoader.load(this, path) + .placeholder(R.drawable.image_cover_default) + .error(R.drawable.image_cover_default) + .centerCrop() + .into(iv_cover) + ImageLoader.load(this, path) + .thumbnail(defaultCover()) + .centerCrop() + .apply(RequestOptions.bitmapTransform(BlurTransformation(this, 25))) + .into(iv_bg) } private fun defaultCover(): RequestBuilder {