Skip to content

Commit

Permalink
[Fix] Android: font-family is not apply when secureTextEntry is true
Browse files Browse the repository at this point in the history
- Cherry-pick of facebook#30164
  • Loading branch information
brentvatne committed Dec 3, 2020
1 parent 20741de commit dd0a9d7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,6 @@ 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);

int inputType = type;

Expand All @@ -401,6 +399,8 @@ public void setInputType(int type) {

super.setInputType(inputType);
mStagedInputType = inputType;
// 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
Expand Down

0 comments on commit dd0a9d7

Please sign in to comment.