baoyongzhang / baoyongzhang/SwipeMenuListView

Adaptor items update

Open
#126 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
3.5k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

I have a tablayout (2 tabs) and after applying an action on a item I repopulate both lists.

Ex: tab1 has item1 and item2
tab2 has item3 and item4

Problem details:
1.After applying on action on item2 I am getting item2,item3,item4 (in the fragment) and setting the data to the adapter (to reinitialize the items), but somehow I get item3,item4,item3.
2.If I remove item3 then item4 becomes item3 somehow...

Debugging: I debugged the application and everything seems fine on my side (item2,item3,item4 are sent as expected - I had a different approach and worked well)

Extra: When the activity loads I send the items and everything seems fine, after a "data refresh" something weird happens....
I use org.greenrobot:eventbus:3.0.0 to communicate from tab1 to the activity, then the activity sends an event telling both fragments to reinitialize adapter data.

Do not hesitate to contact me for other details that might help.

Regards,
Negreanu Calin

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the refresh flow described across the activity, both fragments, the adapters, and the org.greenrobot:eventbus:3.0.0 events. Trace the item lists immediately before and after adapter reinitialization, including removal of item3. Done means refreshed tab contents remain in the expected order without duplicated or shifted items.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.