Fix crash when the progress of an installing app decreases

am: 879037d86a

Change-Id: I247f46fbb0fbb1c3b1b86d0171fc2fcf55dda215
This commit is contained in:
Sunny Goyal authored and android-build-merger committed 2017-02-27 18:16:54 +00:00
commit 269a88abab
1 file changed
+3
@@ -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 {