mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-20 08:39:55 +08:00
mutate() after wrap().
PiperOrigin-RevId: 173969517
This commit is contained in:
parent
54b7b1b582
commit
09e51fcda5
@ -1303,7 +1303,7 @@ public class ChipDrawable extends Drawable implements TintAwareDrawable, Callbac
|
||||
public void setCloseIcon(@Nullable Drawable closeIcon) {
|
||||
Drawable oldCloseIcon = this.closeIcon != null ? DrawableCompat.unwrap(this.closeIcon) : null;
|
||||
if (oldCloseIcon != closeIcon) {
|
||||
this.closeIcon = closeIcon != null ? DrawableCompat.wrap(closeIcon.mutate()) : null;
|
||||
this.closeIcon = closeIcon != null ? DrawableCompat.wrap(closeIcon).mutate() : null;
|
||||
|
||||
unapplyChildDrawable(oldCloseIcon);
|
||||
applyChildDrawable(this.closeIcon);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user