Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
1) call springAnimation.start()
2) call springAnimation.animateToFinalPosition(finalPosition)
3) call springAnimation.cancel() immediately after step 2) [before the animation gets updated]
4) call springAnimation.animateToFinalPosition(newFinalPosition) [new final position]
Bug: After the steps 1, 2, 3, and 4, the springAnimation animates to finalPosition instead of newFinalPosition.
Cause: In step 2), mPendingPosition (in SpringAnimation object) gets set to finalPosition, and its value is not cleared in step 3), so it will end up being used in the first animation update after step 4).
This bug could be fixed by setting mPendingPosition = UNSET, when cancel() is called (requires overridding cancel()).