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

Commit 1471bedb authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing badge not disabled when disabling app

Bug: 213314544
Test: Manual
Change-Id: I6750eebfa4e0a83f5f9d2931b6c5e5c885dee912
parent b0a4aa8c
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();
    }