优化
This commit is contained in:
1 parent
d9c801ead9
commit
856f69d655
2 files changed
-2
No files matched your search
@@ -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