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
Fixing this issue https://github.com/tommybuonomo/dotsindicator/issues/131
As the documentation state, using
AdapterDataObserver
we should listen to all changes. Using onlyonChanged
will trigger only when usingnotifyDataSetChanged
, but if you're using any of the specific methods likenotifyItemChanged
it won't be triggered. So in this PR I fix it by simply listening to all changes and callrefreshDots
from each one