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