diff --git a/app/src/main/java/io/legado/app/base/adapter/CommonRecyclerAdapter.kt b/app/src/main/java/io/legado/app/base/adapter/CommonRecyclerAdapter.kt index a638b87f6..25e6b25c4 100644 --- a/app/src/main/java/io/legado/app/base/adapter/CommonRecyclerAdapter.kt +++ b/app/src/main/java/io/legado/app/base/adapter/CommonRecyclerAdapter.kt @@ -339,6 +339,9 @@ abstract class CommonRecyclerAdapter(protected val context: Context) : ) ) + itemDelegates.getValue(viewType) + .registerListener(holder) + if (itemClickListener != null) { holder.itemView.setOnClickListener { getItem(holder.layoutPosition)?.let { @@ -374,10 +377,6 @@ abstract class CommonRecyclerAdapter(protected val context: Context) : itemDelegates.getValue(getItemViewType(holder.layoutPosition)) .convert(holder, it, payloads) } - if (payloads.isEmpty()) { - itemDelegates.getValue(getItemViewType(holder.layoutPosition)) - .registerListener(holder) - } } }