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

added listeners to viewpager2 adapter #137

Closed
wants to merge 1 commit into from

Conversation

orelzion
Copy link

Fixing this issue
#131

As the documentation state, using AdapterDataObserver we should listen to all changes.
Using only onChanged will trigger only when using notifyDataSetChanged, but if you're using any of the specific methods like notifyItemChanged it won't be triggered.
So in this PR I fix it by simply listening to all changes and call refreshDots from each one

@tommybuonomo
Copy link
Owner

Hello @orelzion, thanks for your contribution !
This issue is now fixed in the new version 4.3
Thanks 🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants