diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2017-02-27 09:41:14 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-02-27 09:41:33 -0800 |
commit | 879037d86ac21822c121dfc6543aa918d7b5ca38 (patch) | |
tree | 3fef6accc2f8729f826f002b85f5ab2626a01896 /src/com/android/launcher3/graphics | |
parent | 54d4e645b3c2b2c153e97f776e33685b292f8c2b (diff) | |
download | android_packages_apps_Trebuchet-879037d86ac21822c121dfc6543aa918d7b5ca38.tar.gz android_packages_apps_Trebuchet-879037d86ac21822c121dfc6543aa918d7b5ca38.tar.bz2 android_packages_apps_Trebuchet-879037d86ac21822c121dfc6543aa918d7b5ca38.zip |
Fix crash when the progress of an installing app decreases
Bug: 35793892
Change-Id: I957967c7a11359d951fe055027aa45c7dfd1bd84
Diffstat (limited to 'src/com/android/launcher3/graphics')
-rw-r--r-- | src/com/android/launcher3/graphics/PreloadIconDrawable.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/launcher3/graphics/PreloadIconDrawable.java b/src/com/android/launcher3/graphics/PreloadIconDrawable.java index 3514a37c4..22ce0981d 100644 --- a/src/com/android/launcher3/graphics/PreloadIconDrawable.java +++ b/src/com/android/launcher3/graphics/PreloadIconDrawable.java @@ -217,6 +217,9 @@ public class PreloadIconDrawable extends FastBitmapDrawable { if (Float.compare(finalProgress, mInternalStateProgress) == 0) { return; } + if (finalProgress < mInternalStateProgress) { + shouldAnimate = false; + } if (!shouldAnimate || mRanFinishAnimation) { setInternalProgress(finalProgress); } else { |