commit | 84ad7e9ee2a2f1927fc54dcf94852a764d39bf64 | [log] [tgz] |
---|---|---|
author | Vladislav Kaznacheev <kaznacheev@google.com> | Tue Aug 04 10:57:04 2015 -0700 |
committer | Vladislav Kaznacheev <kaznacheev@google.com> | Tue Aug 04 21:24:59 2015 +0000 |
tree | 571ec585b18f74645e170e8464024ef453f303e6 | |
parent | fc5a4bf0e1520bf3acd75226d760b8e1d7cdd59f [diff] |
Keep OverScroller.SplineOverScroller state consistent. Currently update() bails out early if it is called too soon after mStartTime has been set. In this case mCurrentPosition remains holding an obsolete value from a previous animation. This causes some strange behavior (see the referenced bug). This patch makes sure that mCurrentPosition is updated every time that mStart is updated. Bug: 22950559 Change-Id: I07b92f30ebe29856f4e04dc19a4820123713fd7e