|
|
@ -17,6 +17,7 @@ class ChangeSourceAdapter(context: Context) : SimpleRecyclerAdapter<SearchBook>( |
|
|
|
|
|
|
|
|
|
|
|
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()) { |
|
|
|
this.onClick { |
|
|
|
this.onClick { |
|
|
|
callBack?.changeTo(item) |
|
|
|
callBack?.changeTo(item) |
|
|
|
} |
|
|
|
} |
|
|
@ -29,6 +30,10 @@ class ChangeSourceAdapter(context: Context) : SimpleRecyclerAdapter<SearchBook>( |
|
|
|
iv_checked.invisible() |
|
|
|
iv_checked.invisible() |
|
|
|
} |
|
|
|
} |
|
|
|
} ?: iv_checked.invisible() |
|
|
|
} ?: iv_checked.invisible() |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
tv_origin.text = item.originName |
|
|
|
|
|
|
|
tv_last.text = item.latestChapterTitle |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|