From 6e9ee621374140bc29ea9281d09a2337c8f1b877 Mon Sep 17 00:00:00 2001 From: gedoor Date: Sun, 9 Jun 2019 21:16:10 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/main/bookshelf/BookshelfAdapter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfAdapter.kt b/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfAdapter.kt index 5c04b5b3c..2d0501171 100644 --- a/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfAdapter.kt +++ b/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfAdapter.kt @@ -57,7 +57,7 @@ class BookshelfAdapter : PagedListAdapter(D tv_last.text = book.latestChapterTitle val cover = if (isEmpty(book.customCoverUrl)) book.coverUrl else book.customCoverUrl cover?.let { - if (cover.startsWith("http")) { + if (it.startsWith("http")) { Glide.with(itemView).load(it) .apply(RequestOptions().dontAnimate().diskCacheStrategy(DiskCacheStrategy.RESOURCE) .centerCrop().placeholder(R.drawable.img_cover_default))