OSDN Git Service

Set PreloadIconDrawable disabled = false when restore is complete
authorTony Wickham <twickham@google.com>
Thu, 8 Dec 2016 19:41:22 +0000 (11:41 -0800)
committerTony Wickham <twickham@google.com>
Thu, 8 Dec 2016 22:13:27 +0000 (14:13 -0800)
This ensures that it regains its color rather than remaining gray.

Bug: 33429398
Change-Id: Ic073570613aa01f061f0f3093cf05ee74332ae8a

src/com/android/launcher3/PreloadIconDrawable.java

index efc0eac..973e688 100644 (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();