rengwuxian / MaterialEditText

EditText in Material Design
6.11k stars 1.05k forks source link

setErrorColor doesn't change icon color #380

Open astroalek opened 5 years ago

astroalek commented 5 years ago

When I call

mText.setError(message);
mText.setErrorColor(warningColor);

helperText and underline gets warningColor paint; I expected that calling setErrorColor would change also icons color but my icon always become red.

Changing onDraw method on line 1279 could resolve my issue? From paint.setAlpha(255); To paint.setColor(isInternalValid() ? primaryColor : errorColor);