Merge "Auto finish composing text when A11yIME commits text" into tm-dev

This commit is contained in:
TreeHugger Robot
2022-04-21 09:58:58 +00:00
committed by Android (Google) Code Review

View File

@@ -1065,7 +1065,11 @@ public final class RemoteInputConnectionImpl extends IInputContext.Stub {
Log.w(TAG, "commitText on inactive InputConnection");
return;
}
// A11yIME's commitText() also triggers finishComposingText() automatically.
ic.beginBatchEdit();
ic.finishComposingText();
ic.commitText(text, newCursorPosition, textAttribute);
ic.endBatchEdit();
});
}