summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Doris Liu <tianliu@google.com> 2016-08-08 21:23:10 +0000
committer android-build-merger <android-build-merger@google.com> 2016-08-08 21:23:10 +0000
commitc66c046a18dec211113246eddb3b34d24d8dbf16 (patch)
treec269810b02b3882e78f4e1efca501030ed8b0c5f
parenta70315d35f9427c61eada314bbd9524aaaae7272 (diff)
parent18e08a0170a429929e4b974143ecd0d6603b332c (diff)
Fix infinite AVD not running
am: 18e08a0170 Change-Id: I104389d9264c88999e02a5a7547e3f8c382ce0a9
-rw-r--r--libs/hwui/PropertyValuesAnimatorSet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/PropertyValuesAnimatorSet.cpp b/libs/hwui/PropertyValuesAnimatorSet.cpp
index 961132ea42fa..38fb70a92e43 100644
--- a/libs/hwui/PropertyValuesAnimatorSet.cpp
+++ b/libs/hwui/PropertyValuesAnimatorSet.cpp
@@ -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
// 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.
- if ((mLatestFraction == mRepeatCount + 1) && (totalFraction >= mRepeatCount + 1)) {
+ if ((mLatestFraction == mRepeatCount + 1.0) && (totalFraction >= mRepeatCount + 1.0)) {
return;
}