From 835c7e973a14c1f5be287e450f2862480a7bf6de Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 5 Apr 2022 09:33:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/ui/book/changesource/ChangeBookSourceAdapter.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/book/changesource/ChangeBookSourceAdapter.kt b/app/src/main/java/io/legado/app/ui/book/changesource/ChangeBookSourceAdapter.kt index 5a653b53d..00a3b9f30 100644 --- a/app/src/main/java/io/legado/app/ui/book/changesource/ChangeBookSourceAdapter.kt +++ b/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) { holder.itemView.setOnClickListener { getItem(holder.layoutPosition)?.let { - callBack.changeTo(it) + if (it.bookUrl != callBack.bookUrl) { + callBack.changeTo(it) + } } } holder.itemView.onLongClick {