Fix infinite AVD not running am: 18e08a0170

am: c66c046a18

Change-Id: I1c6b7e9f768fae2d9ab8b6e22b3d6386de80df89
This commit is contained in:
Doris Liu
2016-08-08 21:37:26 +00:00
committed by android-build-merger

View File

@@ -156,7 +156,7 @@ void PropertyAnimator::setFraction(float fraction, long iteration) {
// This makes sure we only set the fraction = repeatCount + 1 once. It is needed because there // This makes sure we only set the fraction = repeatCount + 1 once. It is needed because there
// might be another animator modifying the same property after this animator finishes, we need // might be another animator modifying the same property after this animator finishes, we need
// to make sure we don't set conflicting values on the same property within one frame. // to make sure we don't set conflicting values on the same property within one frame.
if ((mLatestFraction == mRepeatCount + 1) && (totalFraction >= mRepeatCount + 1)) { if ((mLatestFraction == mRepeatCount + 1.0) && (totalFraction >= mRepeatCount + 1.0)) {
return; return;
} }