This ensures that it regains its color rather than remaining gray.
Bug:
33429398
Change-Id: Ic073570613aa01f061f0f3093cf05ee74332ae8a
// 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();