diff options
author | 2012-07-06 02:09:28 -0700 | |
---|---|---|
committer | 2012-07-06 02:09:28 -0700 | |
commit | a3dee0d06279054a1f18643e15bff94c74fdcfa0 (patch) | |
tree | 6f2ed88945a747b4eeac1092b01e13eefa61312a /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 449be371aee91594bc6ee09479af0cc20bcfcea9 (diff) | |
parent | 4fde56b8182514bcae64d76488724d2a64a73f14 (diff) | |
download | latinime-a3dee0d06279054a1f18643e15bff94c74fdcfa0.tar.gz latinime-a3dee0d06279054a1f18643e15bff94c74fdcfa0.tar.xz latinime-a3dee0d06279054a1f18643e15bff94c74fdcfa0.zip |
Merge "Fix a bug where spaces would be forgotten"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 25159b5ce..e36a5a795 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1789,6 +1789,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen return; } + mConnection.beginBatchEdit(); if (SPACE_STATE_PHANTOM == mSpaceState && suggestion.length() > 0) { int firstChar = Character.codePointAt(suggestion, 0); if ((!mCurrentSettings.isWeakSpaceStripper(firstChar)) @@ -1806,7 +1807,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen mKeyboardSwitcher.updateShiftState(); resetComposingState(true /* alsoResetLastComposedWord */); final CompletionInfo completionInfo = mApplicationSpecifiedCompletions[index]; - mConnection.beginBatchEdit(); mConnection.commitCompletion(completionInfo); mConnection.endBatchEdit(); if (ProductionFlag.IS_EXPERIMENTAL) { @@ -1827,6 +1827,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen mExpectingUpdateSelection = true; commitChosenWord(suggestion, LastComposedWord.COMMIT_TYPE_MANUAL_PICK, LastComposedWord.NOT_A_SEPARATOR); + mConnection.endBatchEdit(); // Don't allow cancellation of manual pick mLastComposedWord.deactivate(); mSpaceState = SPACE_STATE_PHANTOM; |