Skip to content

Commit

Permalink
fix: #3770
Browse files Browse the repository at this point in the history
  • Loading branch information
limuyang2 committed Jun 2, 2023
1 parent d835585 commit d1ce613
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
signing
}

val versionName = "3.0.13"
val versionName = "3.0.14"


android {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,19 +156,20 @@ abstract class BaseNodeAdapter(nodeList: MutableList<BaseNode>? = null)
if (position >= data.size) {
return 0
}
// 记录被移除的item数量
var removeCount = 0

// 先移除子项
removeCount = removeChildAt(position)
// 记录被移除的item数量,先移除子项
var removeCount = removeChildAt(position)
val node = this.data[position]

// 是否存在移除的脚部
val isRemoveFooter = node is NodeFooterImp && node.footerNode != null

// 移除node自己
this.data.removeAt(position)
removeCount += 1

val node = this.data[position]
// 移除脚部
if (node is NodeFooterImp && node.footerNode != null) {
if (isRemoveFooter) {
this.data.removeAt(position)
removeCount += 1
}
Expand Down

0 comments on commit d1ce613

Please sign in to comment.