diff --git a/app/src/main/java/io/legado/app/ui/search/SearchAdapter.kt b/app/src/main/java/io/legado/app/ui/search/SearchAdapter.kt index 42b066235..6ee7337eb 100644 --- a/app/src/main/java/io/legado/app/ui/search/SearchAdapter.kt +++ b/app/src/main/java/io/legado/app/ui/search/SearchAdapter.kt @@ -28,7 +28,7 @@ class SearchAdapter : PagedListAdapter(D super.onBindViewHolder(holder, position, payloads) } else { getItem(position)?.let { - holder.bindChange(it, payloads, callBack) + holder.bindChange(it, payloads) } } } @@ -95,7 +95,7 @@ class SearchAdapter : PagedListAdapter(D } } - fun bindChange(searchBook: SearchShow, payloads: MutableList, callBack: CallBack?) = + fun bindChange(searchBook: SearchShow, payloads: MutableList) = with(itemView) { when (payloads[0]) { 1 -> bv_originCount.setBadgeCount(searchBook.originCount)