From 3da39302bf1ab409e81a675d73938efa8df5d330 Mon Sep 17 00:00:00 2001 From: Hank Chen Date: Mon, 12 Oct 2020 17:23:22 +0800 Subject: [PATCH] [Fix] `Android`: font-family is not apply when secureTextEntry is true --- .../com/facebook/react/views/textinput/ReactEditText.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java index 4d4147215d88..adb762c18050 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java @@ -418,11 +418,10 @@ public String getReturnKeyType() { @Override public void setInputType(int type) { Typeface tf = super.getTypeface(); - // Input type password defaults to monospace font, so we need to re-apply the font - super.setTypeface(tf); - super.setInputType(type); mStagedInputType = type; + // Input type password defaults to monospace font, so we need to re-apply the font + super.setTypeface(tf); /** * If set forces multiline on input, because of a restriction on Android source that enables