pull/32/head
gedoor 6 years ago
parent 1740bcc7ca
commit 6e9ee62137
  1. 2
      app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfAdapter.kt

@ -57,7 +57,7 @@ class BookshelfAdapter : PagedListAdapter<Book, BookshelfAdapter.MyViewHolder>(D
tv_last.text = book.latestChapterTitle tv_last.text = book.latestChapterTitle
val cover = if (isEmpty(book.customCoverUrl)) book.coverUrl else book.customCoverUrl val cover = if (isEmpty(book.customCoverUrl)) book.coverUrl else book.customCoverUrl
cover?.let { cover?.let {
if (cover.startsWith("http")) { if (it.startsWith("http")) {
Glide.with(itemView).load(it) Glide.with(itemView).load(it)
.apply(RequestOptions().dontAnimate().diskCacheStrategy(DiskCacheStrategy.RESOURCE) .apply(RequestOptions().dontAnimate().diskCacheStrategy(DiskCacheStrategy.RESOURCE)
.centerCrop().placeholder(R.drawable.img_cover_default)) .centerCrop().placeholder(R.drawable.img_cover_default))

Loading…
Cancel
Save