fix android input on text change recursive

This commit is contained in:
王劲鹏 2021-07-23 10:35:57 +08:00 committed by osborn
parent fcd4449a9d
commit 7a94ef0a53

View File

@ -165,7 +165,9 @@ public class InputNode extends ViewNode<EditText> implements TextWatcher, View.O
break;
case "text":
String text = prop.isString() ? prop.asString().toString() : "";
if (!view.getText().toString().equals(text)) {
view.setText(text);
}
view.setSelection(text.length());
break;
case "textSize":