mirror of
https://github.com/SimpleMobileTools/Simple-Launcher.git
synced 2025-04-13 09:32:02 +02:00
Merge pull request #137 from esensar/fix/133-widgets-flicker
Prevent widgets flicker by skipping the last update in animation
This commit is contained in:
commit
24f3132641
@ -1930,8 +1930,10 @@ private class AnimatedGridPager(
|
||||
.apply {
|
||||
interpolator = OvershootInterpolator(1f)
|
||||
addUpdateListener {
|
||||
pageChangeAnimLeftPercentage = it.animatedValue as Float
|
||||
redrawGrid()
|
||||
if (it.animatedValue != 0f) {
|
||||
pageChangeAnimLeftPercentage = it.animatedValue as Float
|
||||
redrawGrid()
|
||||
}
|
||||
}
|
||||
addListener(object : AnimatorListenerAdapter() {
|
||||
override fun onAnimationEnd(animation: Animator) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user