Prevent widgets flicker by skipping the last update in animation
This closes #133
This commit is contained in:
parent
6e9d8686bf
commit
887cce5e67
|
@ -1931,9 +1931,11 @@ private class AnimatedGridPager(
|
|||
.apply {
|
||||
interpolator = OvershootInterpolator(1f)
|
||||
addUpdateListener {
|
||||
if (it.animatedValue != 0f) {
|
||||
pageChangeAnimLeftPercentage = it.animatedValue as Float
|
||||
redrawGrid()
|
||||
}
|
||||
}
|
||||
addListener(object : AnimatorListenerAdapter() {
|
||||
override fun onAnimationEnd(animation: Animator) {
|
||||
super.onAnimationEnd(animation)
|
||||
|
|
Loading…
Reference in New Issue