mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix a failing test
Bug: 11846748 Change-Id: Ieda55477201c11fb31b0f84e70ecd081211c78fc
This commit is contained in:
parent
4095177c4f
commit
a78b0f6b9e
@ -243,6 +243,7 @@ public final class RichInputConnection {
|
|||||||
if (DEBUG_PREVIOUS_TEXT) checkConsistencyForDebug();
|
if (DEBUG_PREVIOUS_TEXT) checkConsistencyForDebug();
|
||||||
mCommittedTextBeforeComposingText.append(text);
|
mCommittedTextBeforeComposingText.append(text);
|
||||||
mExpectedSelStart += text.length() - mComposingText.length();
|
mExpectedSelStart += text.length() - mComposingText.length();
|
||||||
|
mExpectedSelEnd = mExpectedSelStart;
|
||||||
mComposingText.setLength(0);
|
mComposingText.setLength(0);
|
||||||
if (null != mIC) {
|
if (null != mIC) {
|
||||||
mIC.commitText(text, i);
|
mIC.commitText(text, i);
|
||||||
@ -493,6 +494,7 @@ public final class RichInputConnection {
|
|||||||
if (DEBUG_BATCH_NESTING) checkBatchEdit();
|
if (DEBUG_BATCH_NESTING) checkBatchEdit();
|
||||||
if (DEBUG_PREVIOUS_TEXT) checkConsistencyForDebug();
|
if (DEBUG_PREVIOUS_TEXT) checkConsistencyForDebug();
|
||||||
mExpectedSelStart = start;
|
mExpectedSelStart = start;
|
||||||
|
mExpectedSelEnd = end;
|
||||||
if (null != mIC) {
|
if (null != mIC) {
|
||||||
final boolean isIcValid = mIC.setSelection(start, end);
|
final boolean isIcValid = mIC.setSelection(start, end);
|
||||||
if (!isIcValid) {
|
if (!isIcValid) {
|
||||||
@ -524,6 +526,7 @@ public final class RichInputConnection {
|
|||||||
if (null == text) text = "";
|
if (null == text) text = "";
|
||||||
mCommittedTextBeforeComposingText.append(text);
|
mCommittedTextBeforeComposingText.append(text);
|
||||||
mExpectedSelStart += text.length() - mComposingText.length();
|
mExpectedSelStart += text.length() - mComposingText.length();
|
||||||
|
mExpectedSelEnd = mExpectedSelStart;
|
||||||
mComposingText.setLength(0);
|
mComposingText.setLength(0);
|
||||||
if (null != mIC) {
|
if (null != mIC) {
|
||||||
mIC.commitCompletion(completionInfo);
|
mIC.commitCompletion(completionInfo);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user