Skip to content

Commit 4e3b5e3

Browse files
committed
Fix PageIndicationBar interpolator setting
1 parent f139a31 commit 4e3b5e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/autocrop/activities/examination/fragments/viewpager/views/PageIndicationLayout.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class PageIndicationBar(context: Context, attr: AttributeSet) :
4747
(max.toFloat() / (sharedViewModel.dataSet.lastIndex).toFloat() * pageIndex).roundToInt()
4848

4949
private fun interpolator(scrolledRight: Boolean, newProgress: Int): BaseInterpolator =
50-
if ((progress == 0 && newProgress == 100 && scrolledRight) || progress == 100 && newProgress == 0 && !scrolledRight)
50+
if ((progress == 0 && newProgress == 100 && !scrolledRight) || progress == 100 && newProgress == 0 && scrolledRight)
5151
BounceInterpolator()
5252
else
5353
DecelerateInterpolator()

0 commit comments

Comments
 (0)