Fix cursor state bug
InputConnection#finishComposingText() should not change the position of the cursor, so neither should it change its internal expectation of the cursor's position. Change-Id: Ib3d39a5743cd1e8e356f438b04a5c30279430b2a
This commit is contained in:
parent
dadf3bf107
commit
6c94a18a28
1 changed files with 0 additions and 1 deletions
|
@ -169,7 +169,6 @@ public final class RichInputConnection {
|
|||
if (DEBUG_BATCH_NESTING) checkBatchEdit();
|
||||
if (DEBUG_PREVIOUS_TEXT) checkConsistencyForDebug();
|
||||
mCommittedTextBeforeComposingText.append(mComposingText);
|
||||
mExpectedCursorPosition += mComposingText.length();
|
||||
mComposingText.setLength(0);
|
||||
if (null != mIC) {
|
||||
mIC.finishComposingText();
|
||||
|
|
Loading…
Reference in a new issue