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

Commit 0c87e735 authored by Tony Wickham's avatar Tony Wickham Committed by Android (Google) Code Review
Browse files

Merge "Set PreloadIconDrawable disabled = false when restore is complete" into ub-launcher3-master

parents 72169102 e391bd5a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -177,8 +177,9 @@ public class PreloadIconDrawable extends Drawable {
            // Set the paint color only when the level changes, so that the dominant color
            // is only calculated when needed.
            mPaint.setColor(getIndicatorColor());
        } else if (mIcon instanceof FastBitmapDrawable) {
            ((FastBitmapDrawable) mIcon).setIsDisabled(true);
        }
        if (mIcon instanceof FastBitmapDrawable) {
            ((FastBitmapDrawable) mIcon).setIsDisabled(level < 100);
        }

        invalidateSelf();