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; break;
case "text": case "text":
String text = prop.isString() ? prop.asString().toString() : ""; String text = prop.isString() ? prop.asString().toString() : "";
view.setText(text); if (!view.getText().toString().equals(text)) {
view.setText(text);
}
view.setSelection(text.length()); view.setSelection(text.length());
break; break;
case "textSize": case "textSize":