Merge "Allow infinite-repeat zero-duration animators to continue repeating" into lmp-mr1-dev

This commit is contained in:
Chet Haase
2015-01-23 17:56:57 +00:00
committed by Android (Google) Code Review

View File

@@ -1273,8 +1273,7 @@ public class ValueAnimator extends Animator {
}
}
if (fraction >= 1f) {
if (mCurrentIteration < mRepeatCount ||
(mRepeatCount == INFINITE && mDuration != 0)) {
if (mCurrentIteration < mRepeatCount || mRepeatCount == INFINITE) {
// Time to repeat
if (mListeners != null) {
int numListeners = mListeners.size();