Skip to content

Commit

Permalink
[TextInputLayout] Mutate cursor drawable before tinting it.
Browse files Browse the repository at this point in the history
Resolves #3491

PiperOrigin-RevId: 561722342
  • Loading branch information
leticiarossi committed Aug 31, 2023
1 parent c40e468 commit 9a4888f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -4429,7 +4429,7 @@ private void updateCursorColor() {
return;
}

Drawable cursorDrawable = editText.getTextCursorDrawable();
Drawable cursorDrawable = DrawableCompat.wrap(editText.getTextCursorDrawable()).mutate();
if (isOnError() && cursorErrorColor != null) {
color = cursorErrorColor;
}
Expand Down

0 comments on commit 9a4888f

Please sign in to comment.