|
|
@ -17,9 +17,7 @@ class ChangeSourceAdapter(context: Context, val callBack: CallBack) : |
|
|
|
override fun convert(holder: ItemViewHolder, item: SearchBook, payloads: MutableList<Any>) { |
|
|
|
override fun convert(holder: ItemViewHolder, item: SearchBook, payloads: MutableList<Any>) { |
|
|
|
holder.itemView.apply { |
|
|
|
holder.itemView.apply { |
|
|
|
if (payloads.isEmpty()) { |
|
|
|
if (payloads.isEmpty()) { |
|
|
|
this.onClick { |
|
|
|
this.onClick { callBack.changeTo(item) } |
|
|
|
callBack.changeTo(item) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
tv_origin.text = item.originName |
|
|
|
tv_origin.text = item.originName |
|
|
|
tv_last.text = item.latestChapterTitle |
|
|
|
tv_last.text = item.latestChapterTitle |
|
|
|
if (callBack.curBookUrl() == item.bookUrl) { |
|
|
|
if (callBack.curBookUrl() == item.bookUrl) { |
|
|
|