Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,12 @@ abstract class BaseNodeAdapter(nodeList: MutableList<BaseNode>? = null)
}
val items = flatData(node.childNode!!, if (isChangeChildCollapse) false else null)
val size = items.size
this.data.removeAll(items)
// this.data.removeAll(items)
//修改移除方法解决删除大数据卡顿问题
this.data.subList(
position + 1,
position + 1 + size
).clear()
if (notify) {
if (animate) {
notifyItemChanged(adapterPosition, parentPayload)
Expand Down