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

Commit 879037d8 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fix crash when the progress of an installing app decreases

Bug: 35793892
Change-Id: I957967c7a11359d951fe055027aa45c7dfd1bd84
parent 54d4e645
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 {