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:
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user