From 20c83e74733207e4c6948243ee99a71d808558d3 Mon Sep 17 00:00:00 2001 From: Abraham Date: Fri, 22 Mar 2019 21:52:47 +0200 Subject: [PATCH] fixed issue #25 for worms. --- .../com/tbuonomo/viewpagerdotsindicator/WormDotsIndicator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viewpagerdotsindicator/src/main/java/com/tbuonomo/viewpagerdotsindicator/WormDotsIndicator.java b/viewpagerdotsindicator/src/main/java/com/tbuonomo/viewpagerdotsindicator/WormDotsIndicator.java index e5dc10a..7dd9254 100644 --- a/viewpagerdotsindicator/src/main/java/com/tbuonomo/viewpagerdotsindicator/WormDotsIndicator.java +++ b/viewpagerdotsindicator/src/main/java/com/tbuonomo/viewpagerdotsindicator/WormDotsIndicator.java @@ -210,7 +210,7 @@ private void setUpDotsAnimators() { } setUpOnPageChangedListener(); viewPager.addOnPageChangeListener(pageChangedListener); - pageChangedListener.onPageScrolled(0, 0, 0); + pageChangedListener.onPageScrolled(viewPager.getCurrentItem(), 0, 0); } }