|
|
@ -30,7 +30,7 @@ class BooksAdapterList(context: Context, private val callBack: CallBack) : |
|
|
|
tvAuthor.text = item.author |
|
|
|
tvAuthor.text = item.author |
|
|
|
tvRead.text = item.durChapterTitle |
|
|
|
tvRead.text = item.durChapterTitle |
|
|
|
tvLast.text = item.latestChapterTitle |
|
|
|
tvLast.text = item.latestChapterTitle |
|
|
|
ivCover.load(item.getDisplayCover(), item.name, item.author) |
|
|
|
ivCover.load(item.getDisplayCover(), item.name, item.author, false, item.origin) |
|
|
|
upRefresh(binding, item) |
|
|
|
upRefresh(binding, item) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
tvRead.text = item.durChapterTitle |
|
|
|
tvRead.text = item.durChapterTitle |
|
|
@ -39,7 +39,7 @@ class BooksAdapterList(context: Context, private val callBack: CallBack) : |
|
|
|
when (it) { |
|
|
|
when (it) { |
|
|
|
"name" -> tvName.text = item.name |
|
|
|
"name" -> tvName.text = item.name |
|
|
|
"author" -> tvAuthor.text = item.author |
|
|
|
"author" -> tvAuthor.text = item.author |
|
|
|
"cover" -> ivCover.load(item.getDisplayCover()) |
|
|
|
"cover" -> ivCover.load(item.getDisplayCover(), item.name, item.author, false, item.origin) |
|
|
|
"refresh" -> upRefresh(binding, item) |
|
|
|
"refresh" -> upRefresh(binding, item) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|