Skip to content

Commit 09e77fa

Browse files
pubiqqpaulfthomas
authored andcommitted
[Chip] Fix close icon tint
Resolves #4824 - 050b1f1 by pubiqq <[email protected]> PiperOrigin-RevId: 776656483
1 parent 26ced72 commit 09e77fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/java/com/google/android/material/chip/ChipDrawable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1326,10 +1326,10 @@ private void applyChildDrawable(@Nullable Drawable drawable) {
13261326
drawable.setVisible(isVisible(), false);
13271327

13281328
if (drawable == closeIcon) {
1329+
drawable.setTintList(closeIconTint); // call before `setState` to prevent state reset
13291330
if (drawable.isStateful()) {
13301331
drawable.setState(getCloseIconState());
13311332
}
1332-
drawable.setTintList(closeIconTint);
13331333
return;
13341334
}
13351335
if (drawable == chipIcon && hasChipIconTint) {

0 commit comments

Comments
 (0)