pull/293/head
gedoor 5 years ago
parent e62a8eb015
commit aea5f831e0
  1. 6
      app/src/main/java/io/legado/app/ui/main/bookshelf/books/BooksAdapterList.kt

@ -28,16 +28,14 @@ class BooksAdapterList(context: Context, private val callBack: CallBack) :
iv_cover.load(item.getDisplayCover(), item.name, item.author)
upRefresh(this, item)
} else {
tv_read.text = item.durChapterTitle
tv_last.text = item.latestChapterTitle
bundle.keySet().forEach {
when (it) {
"name" -> tv_name.text = item.name
"author" -> tv_author.text = item.author
"cover" -> iv_cover.load(item.getDisplayCover(), item.name, item.author)
"refresh" -> upRefresh(this, item)
else -> {
tv_read.text = item.durChapterTitle
tv_last.text = item.latestChapterTitle
}
}
}
}

Loading…
Cancel
Save