优化
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 ->
|
||||
|
||||
Reference in New Issue
Block a user