From 56c1385534a3f5531dce51da4631b53ebb73f845 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 28 Aug 2019 08:52:50 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/ui/search/SearchAdapter.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)