CymChad / CymChad/BaseRecyclerViewAdapterHelper
2.9.50 版本 Inconsistency detected. Invalid view holder adapter positionBaseViewHolde
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 24.6k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
使用BaseMultiItemQuickAdapter,场景是有多个分类选项,在切换分类的时候去设置数据源,更新adapter改变数据显示,假设分类一的数据量较大超80个分组,在数据非展开状态,单独设置某个数据展开而后去切换到分类二这个时候分类二的数据设置到adapter更新数据,会造成以上崩溃,这个操作非必现也许和频繁切换分类和获取分类有关系。
recycleview版本 1.1.0
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 by reproducing the crash with BaseMultiItemQuickAdapter: use multiple categories, expand an item in a large collapsed list, then switch categories and update the adapter data repeatedly. Check the behavior with RecyclerView 1.1.0 and capture the failure details. Done means category switching and data updates no longer produce the reported invalid view holder adapter position crash.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100