Skip to content


[Checkbox] Fixed checkmark icon not updating color on error correctly…
Browse files Browse the repository at this point in the history
… in pre 21.

Issue happened on checkboxes that switched from unchecked to checked and later to be on error state.

Fixes #3302

PiperOrigin-RevId: 520088272
  • Loading branch information
leticiarossi authored and pekingme committed Mar 29, 2023
1 parent bcc97bf commit 62aa802
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -471,6 +471,10 @@ public void setErrorShown(boolean errorShown) {
this.errorShown = errorShown;
// This is needed due to a pre-21 bug where the drawable states don't get updated correctly.
if (VERSION.SDK_INT < VERSION_CODES.LOLLIPOP && buttonIconDrawable != null) {
for (OnErrorChangedListener listener : onErrorChangedListeners) {
listener.onErrorChanged(this, this.errorShown);
Expand Down

0 comments on commit 62aa802

Please sign in to comment.