Skip to content

Commit 9a4888f

Browse files
committedAug 31, 2023
[TextInputLayout] Mutate cursor drawable before tinting it.
Resolves #3491 PiperOrigin-RevId: 561722342
1 parent c40e468 commit 9a4888f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/java/com/google/android/material/textfield/TextInputLayout.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -4429,7 +4429,7 @@ private void updateCursorColor() {
44294429
return;
44304430
}
44314431

4432-
Drawable cursorDrawable = editText.getTextCursorDrawable();
4432+
Drawable cursorDrawable = DrawableCompat.wrap(editText.getTextCursorDrawable()).mutate();
44334433
if (isOnError() && cursorErrorColor != null) {
44344434
color = cursorErrorColor;
44354435
}

0 commit comments

Comments
 (0)
Please sign in to comment.