summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorDoris Liu <tianliu@google.com>2016-08-08 12:47:20 -0700
committerDoris Liu <tianliu@google.com>2016-08-08 19:57:34 +0000
commit18e08a0170a429929e4b974143ecd0d6603b332c (patch)
tree8cdcb0a0f6a7616539ec989fdea57d9a0b8b0063 /libs
parent5a3e33a82a36d22a39f0efd743b259256c9fad54 (diff)
downloadandroid-frameworks-base-18e08a0170a429929e4b974143ecd0d6603b332c.tar.gz
android-frameworks-base-18e08a0170a429929e4b974143ecd0d6603b332c.tar.xz
Fix infinite AVD not running
This CL fixed an integer overflow error caused by using integer literal when it should be a float literal that defines a double. BUG:30739855 Change-Id: If2bdb0eb7a2e93d28434bfe72ec11e8f1f2a1eda
Diffstat (limited to 'libs')
-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 961132e..38fb70a 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;
}