fix android input on text change recursive
This commit is contained in:
parent
fcd4449a9d
commit
7a94ef0a53
@ -165,7 +165,9 @@ public class InputNode extends ViewNode<EditText> implements TextWatcher, View.O
|
|||||||
break;
|
break;
|
||||||
case "text":
|
case "text":
|
||||||
String text = prop.isString() ? prop.asString().toString() : "";
|
String text = prop.isString() ? prop.asString().toString() : "";
|
||||||
|
if (!view.getText().toString().equals(text)) {
|
||||||
view.setText(text);
|
view.setText(text);
|
||||||
|
}
|
||||||
view.setSelection(text.length());
|
view.setSelection(text.length());
|
||||||
break;
|
break;
|
||||||
case "textSize":
|
case "textSize":
|
||||||
|
Reference in New Issue
Block a user