Skip to content

Commit

Permalink
IconLoader: Set alpha to parent in AdaptiveIconCompat
Browse files Browse the repository at this point in the history
  • Loading branch information
amirzaidi committed Jun 6, 2020
1 parent 9339b5c commit 5f37964
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,18 @@ private AdaptiveIconCompat(AdaptiveIconDrawable drawable) {
mInitMask = sMask;
mMask = new Path(sMask);
mMaskScaleOnly = new Path(mMask);
mPaint.setAlpha(drawable.getAlpha());
setAlpha(drawable.getAlpha());
setBounds(drawable.getBounds());
setChangingConfigurations(drawable.getChangingConfigurations());
setColorFilter(drawable.getColorFilter());
}

@Override
public void setAlpha(int alpha) {
super.setAlpha(alpha);
mPaint.setAlpha(alpha);
}

@Override
public Path getIconMask() {
return mMask;
Expand Down

0 comments on commit 5f37964

Please sign in to comment.