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

Commit 1feb658a authored by Pat Manning's avatar Pat Manning Committed by Android Build Coastguard Worker
Browse files

Set FastBitmapDrawable's badge alpha when updating drawable alpha.

Test: FastBitmapDrawableTest
Fix: 304559962
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:9fbf9dbaf366dafad096e6a8715b2f648ab5426a)
Merged-In: I78489684eec5f4637a447fc2cdb9ca390eb71f63
Change-Id: I78489684eec5f4637a447fc2cdb9ca390eb71f63
parent 9ceb2a4b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -172,6 +172,9 @@ public class FastBitmapDrawable extends Drawable implements Drawable.Callback {
            mAlpha = alpha;
            mPaint.setAlpha(alpha);
            invalidateSelf();
            if (mBadge != null) {
                mBadge.setAlpha(alpha);
            }
        }
    }