CymChad / CymChad/BaseRecyclerViewAdapterHelper

New function setOnLoadMoreListener not working as expected on fragment when views recreated.

Open
#3,496 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
24.6k
Forks
5.2k
PR merge metrics
No merged PRs in 30d

Description

when target fragment (A) launches fragment (B), then back again to fragment (A), the RequestLoadMoreListener callback not working because BaseQuickAdapter holding the old recycle view. (BaseQuickAdapter.java).
image

so I suggest adding a new method to update recycle view.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in BaseQuickAdapter.java and reproduce the flow where fragment A launches fragment B, then returns to A after its views are recreated. Check how the adapter retains the old RecyclerView and how setOnLoadMoreListener invokes RequestLoadMoreListener. Done means the callback works with the recreated view after navigation back to fragment A.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.