mutate() after wrap().

PiperOrigin-RevId: 173969517
This commit is contained in:
markwei 2017-10-30 19:43:00 -04:00 committed by Daniel Nizri
parent 54b7b1b582
commit 09e51fcda5

View File

@ -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);