Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
821938089 committed Aug 25, 2024
1 parent d2ce85a commit 8c989be
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ abstract class DiffRecyclerAdapter<ITEM, VB : ViewBinding>(protected val context
position: Int,
payloads: MutableList<Any>
) {
@Suppress("UNCHECKED_CAST")
registerListener(holder, (holder.binding as VB))
registerItemListener(holder)
getItem(holder.layoutPosition)?.let {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,6 @@ abstract class RecyclerAdapter<ITEM, VB : ViewBinding>(protected val context: Co
payloads: MutableList<Any>
) {
if (!isHeader(holder.layoutPosition) && !isFooter(holder.layoutPosition)) {
@Suppress("UNCHECKED_CAST")
registerListener(holder, (holder.binding as VB))
registerItemListener(holder)
getItemByLayoutPosition(holder.layoutPosition)?.let { item ->
Expand Down

0 comments on commit 8c989be

Please sign in to comment.