commit | 6c94a18a2847bfa0943c8154a459bd00dc961f2c | [log] [tgz] |
---|---|---|
author | Kurt Partridge <kep@google.com> | Wed Aug 21 16:46:46 2013 -0700 |
committer | Kurt Partridge <kep@google.com> | Wed Aug 21 17:55:35 2013 -0700 |
tree | 2d28e089a84fa3f55fc88f60abc64ccaa2b28dbd | |
parent | dadf3bf107e8a95aa0a648c67f5d84d311c3cd3b [diff] |
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
diff --git a/java/src/com/android/inputmethod/latin/RichInputConnection.java b/java/src/com/android/inputmethod/latin/RichInputConnection.java index 35920f8..a031bb3 100644 --- a/java/src/com/android/inputmethod/latin/RichInputConnection.java +++ b/java/src/com/android/inputmethod/latin/RichInputConnection.java
@@ -169,7 +169,6 @@ if (DEBUG_BATCH_NESTING) checkBatchEdit(); if (DEBUG_PREVIOUS_TEXT) checkConsistencyForDebug(); mCommittedTextBeforeComposingText.append(mComposingText); - mExpectedCursorPosition += mComposingText.length(); mComposingText.setLength(0); if (null != mIC) { mIC.finishComposingText();