Skip to content

Commit

Permalink
Clear the removals, not the remaining items
Browse files Browse the repository at this point in the history
  • Loading branch information
AbandonedCart committed Jan 27, 2025
1 parent 897da44 commit d69dfd6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ class EliteBankFragment : Fragment(), EliteBankAdapter.OnAmiiboClickListener {
bankAdapter?.notifyItemRangeChanged(0, currentSize)
bankAdapter?.notifyItemRangeInserted(currentSize, updateSize - currentSize)
} else if (currentSize > updateSize) {
amiibos.subList(0, currentSize - updateSize).clear()
amiibos.subList(updateSize, currentSize - updateSize).clear()
bankAdapter?.notifyItemRangeChanged(0, updateSize)
bankAdapter?.notifyItemRangeRemoved(updateSize, currentSize - updateSize)
} else {
Expand Down

0 comments on commit d69dfd6

Please sign in to comment.