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: Ib3d39a5743cd1e8e356f438b04a5c30279430b2amain
parent
dadf3bf107
commit
6c94a18a28
|
@ -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 New Issue