From 8b0150841017d2c01eb29e1c7976bdfcc3d204e2 Mon Sep 17 00:00:00 2001 From: Swordsman-Inaction Date: Mon, 27 Feb 2017 04:08:07 -0800 Subject: [PATCH] Fix: set underlineColorAndroid properly Summary: This PR fixes #6332 The issue is that Android Framework will return the same drawable instance for all requests if they request for the same resource. So the changes on the drawable instance will affect all users(`TextInput` in this case). The solution is very easy, call `mutate()` before change it will get a new drawable instance which make sure the change doesn't affect other users. Closes https://github.com/facebook/react-native/pull/12493 Differential Revision: D4620034 Pulled By: astreet fbshipit-source-id: a7b10fbc7447e01132b7ca0e1f78413796493e07 --- .../facebook/react/views/textinput/ReactTextInputManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java index 37edf2ec668..2f961442de0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java @@ -370,7 +370,7 @@ public class ReactTextInputManager extends BaseViewManager