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

@ -74,9 +74,11 @@ 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 {
if (it.bookUrl != callBack.bookUrl) {
callBack.changeTo(it) callBack.changeTo(it)
} }
} }
}
holder.itemView.onLongClick { holder.itemView.onLongClick {
showMenu(holder.itemView, getItem(holder.layoutPosition)) showMenu(holder.itemView, getItem(holder.layoutPosition))
} }

Loading…
Cancel
Save