Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notifyDataSetChanged() not update the data #3

Closed
borombo-git opened this issue Sep 22, 2019 · 5 comments
Closed

notifyDataSetChanged() not update the data #3

borombo-git opened this issue Sep 22, 2019 · 5 comments
Labels
bug Something isn't working

Comments

@borombo-git
Copy link

Hello,
First, thanks for this amazing lib, you saved me a ton of time!
I started to implement it, and I noticed that when I call notifyDataSetChanged on the adapter, the list is not refreshed, is it normal?
Thanks !

@IDevelopes
Copy link

Im getting the same issue

@maherzaidoune
Copy link

override getItemPosition method and call
@Override public int getItemPosition(@NonNull Object object) { return POSITION_NONE; }
inside your adapter will solve the problem

@IDevelopes
Copy link

Im still getting this error The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 4, found: 0. I get this error when i open new activity then i return to previous. Thanks

@IslamKhSh
Copy link
Owner

This is a bug in the library as data can't set after adapter initiated.
You can get it fixed within few days

@IslamKhSh IslamKhSh added the bug Something isn't working label Jan 11, 2020
@IslamKhSh
Copy link
Owner

Fixed e58af2e (v1.0.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants