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

This commit is contained in:
Tony Wickham
2016-12-08 22:27:40 +00:00
committed by Android (Google) Code Review

View File

@@ -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();