Merge "Auto finish composing text when A11yIME commits text" into tm-dev am: 54a8dee16d

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17775484

Change-Id: I0ee9f8dab40071c18097131f1a5511dc1460ff76
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
TreeHugger Robot
2022-04-21 10:14:21 +00:00
committed by Automerger Merge Worker

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();
});
}