Android: add missing part for beforeTextChange

This commit is contained in:
王劲鹏 2021-07-22 18:39:15 +08:00 committed by osborn
parent a1ded19836
commit c51b03ae9c

View File

@ -450,9 +450,10 @@ public class InputNode extends ViewNode<EditText> implements TextWatcher, View.O
}
AsyncResult<JSDecoder> asyncResult = callJSResponse(beforeTextChangeId,
new JSONBuilder()
.put("start", "")
.put("length", "")
.put("text", "")
.put("editing", dest.toString())
.put("start", dstart)
.put("length", dend - dstart)
.put("replacement", source.toString())
.toJSONObject());
JSDecoder jsDecoder = asyncResult.synchronous().get();
boolean ret = true;