pull/1753/head^2
kunfei 3 years ago
parent 3ea950f4bd
commit 835c7e973a
  1. 4
      app/src/main/java/io/legado/app/ui/book/changesource/ChangeBookSourceAdapter.kt

@ -74,7 +74,9 @@ class ChangeBookSourceAdapter(
override fun registerListener(holder: ItemViewHolder, binding: ItemChangeSourceBinding) { override fun registerListener(holder: ItemViewHolder, binding: ItemChangeSourceBinding) {
holder.itemView.setOnClickListener { holder.itemView.setOnClickListener {
getItem(holder.layoutPosition)?.let { getItem(holder.layoutPosition)?.let {
callBack.changeTo(it) if (it.bookUrl != callBack.bookUrl) {
callBack.changeTo(it)
}
} }
} }
holder.itemView.onLongClick { holder.itemView.onLongClick {

Loading…
Cancel
Save