Skip to content

Commit a4d6f51

Browse files
leticiarossidsn5ft
authored andcommitted
[CheckBox] Fixed icon color not updating correctly in light mode in pre 21.
PiperOrigin-RevId: 465411407
1 parent 745acfd commit a4d6f51

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/java/com/google/android/material/checkbox/MaterialCheckBox.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,10 @@ protected int[] onCreateDrawableState(int extraSpace) {
260260

261261
currentStateChecked = DrawableUtils.getCheckedState(drawableStates);
262262

263+
if (VERSION.SDK_INT < VERSION_CODES.LOLLIPOP) {
264+
jumpDrawablesToCurrentState();
265+
}
266+
263267
return drawableStates;
264268
}
265269

0 commit comments

Comments
 (0)