From 026d8188c5f6733433d1f075088bd69411526282 Mon Sep 17 00:00:00 2001 From: Mirza Date: Sat, 6 Jul 2019 21:00:31 +0300 Subject: [PATCH] animation error in last step animation error in last step --- stepview/src/main/java/com/shuhart/stepview/StepView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepview/src/main/java/com/shuhart/stepview/StepView.java b/stepview/src/main/java/com/shuhart/stepview/StepView.java index 9988a45..6bd1100 100644 --- a/stepview/src/main/java/com/shuhart/stepview/StepView.java +++ b/stepview/src/main/java/com/shuhart/stepview/StepView.java @@ -271,7 +271,7 @@ public State getState() { } public void go(int step, boolean animate) { - if (step >= START_STEP && step < getStepCount()) { + if (step >= START_STEP && step <= getStepCount()) { if (animate && animationType != ANIMATION_NONE && startLinesX != null) { if (Math.abs(step - currentStep) > 1) { endAnimation();