am d8c941ff: Merge "Don\'t update OverScroller fling state if no time has passed since start" into lmp-mr1-dev

* commit 'd8c941ff46a68b91c53b3b1dd26678593787e0f9':
  Don't update OverScroller fling state if no time has passed since start
This commit is contained in:
Adam Powell
2014-10-31 23:48:26 +00:00
committed by Android Git Automerger

View File

@@ -904,6 +904,10 @@ public class OverScroller {
final long time = AnimationUtils.currentAnimationTimeMillis();
final long currentTime = time - mStartTime;
if (currentTime == 0) {
// Skip work but report that we're still going if we have a nonzero duration.
return mDuration > 0;
}
if (currentTime > mDuration) {
return false;
}