Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 269a88ab authored by Sunny Goyal's avatar Sunny Goyal Committed by android-build-merger
Browse files

Fix crash when the progress of an installing app decreases

am: 879037d8

Change-Id: I247f46fbb0fbb1c3b1b86d0171fc2fcf55dda215
parents a68a719e 879037d8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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 {