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

Commit 2c1e1df8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fixing badge not disabled when disabling app"

parents 494a3909 1471bedb
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -274,7 +274,7 @@ public class FastBitmapDrawable extends Drawable implements Drawable.Callback {
            mBadge.setCallback(this);
        }
        updateBadgeBounds(getBounds());
        invalidateSelf();
        updateFilter();
    }

    /**
@@ -282,6 +282,9 @@ public class FastBitmapDrawable extends Drawable implements Drawable.Callback {
     */
    protected void updateFilter() {
        mPaint.setColorFilter(mIsDisabled ? getDisabledColorFilter(mDisabledAlpha) : mColorFilter);
        if (mBadge != null) {
            mBadge.setColorFilter(getColorFilter());
        }
        invalidateSelf();
    }