CymChad / CymChad/BaseRecyclerViewAdapterHelper
BaseNodeAdapter 调用removeAt() 方法移除刷新数据,如果是最后一条数据 会数组越界
Open
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 24.6k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
1.使用 BaseNodeAdapter 实现分组效果;
2.动态删除item,调用 mAdapter.removeAt(position) 或者 mAdapter.remove(Item) ,如果是最后一个元素会数组越界;
越界位置在 BaseNodeAdapter 如下位置:

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in BaseNodeAdapter by tracing removeAt() and remove(Item) with grouped data, focusing on the final-item case described in the report. Reproduce deletion of the last element and verify that refreshing the data no longer causes an array-bounds exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100