From 3836c0479269823fbcab9ac9f8aa2a8229f9f895 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 19 May 2020 21:27:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/legado/app/ui/rss/article/RssArticlesAdapter.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/rss/article/RssArticlesAdapter.kt b/app/src/main/java/io/legado/app/ui/rss/article/RssArticlesAdapter.kt index 7d092aa61..049239a7b 100644 --- a/app/src/main/java/io/legado/app/ui/rss/article/RssArticlesAdapter.kt +++ b/app/src/main/java/io/legado/app/ui/rss/article/RssArticlesAdapter.kt @@ -30,11 +30,11 @@ class RssArticlesAdapter(context: Context, layoutId: Int, val callBack: CallBack if (item.image.isNullOrBlank() && !callBack.isGridLayout) { image_view.gone() } else { - val glide = ImageLoader.load(context, item.image) + val imageLoader = ImageLoader.load(context, item.image) if (callBack.isGridLayout) { - glide.placeholder(R.drawable.image_rss_article) + imageLoader.placeholder(R.drawable.image_rss_article) } else { - glide.addListener(object : RequestListener { + imageLoader.addListener(object : RequestListener { override fun onLoadFailed( e: GlideException?, model: Any?, @@ -58,7 +58,7 @@ class RssArticlesAdapter(context: Context, layoutId: Int, val callBack: CallBack }) } - glide.into(image_view) + imageLoader.into(image_view) } if (item.read) { tv_title.textColorResource = R.color.tv_text_summary