Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…when onItemRangeInserted or onItemRangeRemoved called
  • Loading branch information
aloj22 committed Mar 25, 2021
1 parent 16f1283 commit 4dc08c8
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,16 @@ abstract class BaseDotsIndicator @JvmOverloads constructor(context: Context,
super.onChanged()
refreshDots()
}

override fun onItemRangeInserted(positionStart: Int, itemCount: Int) {
super.onItemRangeInserted(positionStart, itemCount)
refreshDots()
}

override fun onItemRangeRemoved(positionStart: Int, itemCount: Int) {
super.onItemRangeRemoved(positionStart, itemCount)
refreshDots()
}
})

pager = object : Pager {
Expand Down

0 comments on commit 4dc08c8

Please sign in to comment.