pull/32/head
kunfei 5 years ago
parent 93f817c9c7
commit 0c1a633444
  1. 4
      app/src/main/java/io/legado/app/ui/changesource/ChangeSourceAdapter.kt

@ -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) {

Loading…
Cancel
Save