CymChad / CymChad/BaseRecyclerViewAdapterHelper
用kotlion在fragment里面使用adapter,刷新数据失效。
Open
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 24.6k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
在activity里面使用kotlion调adapter的添加数据并刷新可以成功;改到fragment里面清空数据,再刷新就失效了。明明设置的数据是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 reported difference between updating the adapter in an Activity and clearing then refreshing it in a Fragment. Inspect the adapter update and refresh path used by the Fragment case. The issue is done when clearing the data results in a displayed item count of zero and the behavior is covered by a reproduction or test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100