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, AsyncResult<JSDecoder> asyncResult = callJSResponse(beforeTextChangeId,
new JSONBuilder() new JSONBuilder()
.put("start", "") .put("editing", dest.toString())
.put("length", "") .put("start", dstart)
.put("text", "") .put("length", dend - dstart)
.put("replacement", source.toString())
.toJSONObject()); .toJSONObject());
JSDecoder jsDecoder = asyncResult.synchronous().get(); JSDecoder jsDecoder = asyncResult.synchronous().get();
boolean ret = true; boolean ret = true;