Skip to content

Commit

Permalink
[#135] Fix crash on refreshDotsSize method
Browse files Browse the repository at this point in the history
  • Loading branch information
tommybuonomo committed Apr 30, 2022
1 parent 57968d2 commit 2fe2a39
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,7 @@ abstract class BaseDotsIndicator @JvmOverloads constructor(
}

private fun refreshDotsSize() {
for (i in 0 until pager!!.currentItem) {
dots[i].setWidth(dotsSize.toInt())
}
dots.forEach { it.setWidth(dotsSize.toInt()) }
}

// ABSTRACT METHODS AND FIELDS
Expand Down

0 comments on commit 2fe2a39

Please sign in to comment.