diff options
author | 2012-03-05 01:49:46 -0800 | |
---|---|---|
committer | 2012-03-05 01:49:46 -0800 | |
commit | 6a830277dfca9bfa4ec783048cfd2de7504d6fc3 (patch) | |
tree | 91a94dbda0122111bde20233f6461767745c4c25 /java/src | |
parent | 8c80fb9bcbe4375fa296bc12ef2c144d7f6f64f9 (diff) | |
parent | 611a5bdf650f7bc54bf40176f84f1cd9c87aa9aa (diff) | |
download | latinime-6a830277dfca9bfa4ec783048cfd2de7504d6fc3.tar.gz latinime-6a830277dfca9bfa4ec783048cfd2de7504d6fc3.tar.xz latinime-6a830277dfca9bfa4ec783048cfd2de7504d6fc3.zip |
Merge "Refactoring"
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 6c9a827d6..66f0ec03f 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1114,12 +1114,12 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar // and the composingStateManager about it. private void resetEntireInputState() { resetComposingState(true /* alsoResetLastComposedWord */); + mComposingStateManager.onFinishComposingText(); updateSuggestions(); final InputConnection ic = getCurrentInputConnection(); if (ic != null) { ic.finishComposingText(); } - mComposingStateManager.onFinishComposingText(); mVoiceProxy.setVoiceInputHighlighted(false); } @@ -1536,8 +1536,8 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar // it entirely and resume suggestions on the previous word, we'd like to still // have touch coordinates for it. resetComposingState(false /* alsoResetLastComposedWord */); - clearSuggestions(); mComposingStateManager.onFinishComposingText(); + clearSuggestions(); } } if (isComposingWord) { @@ -1896,12 +1896,11 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar mSuggestionsView.clear(); } mKeyboardSwitcher.updateShiftState(); + resetComposingState(true /* alsoResetLastComposedWord */); final InputConnection ic = getCurrentInputConnection(); if (ic != null) { - ic.beginBatchEdit(); final CompletionInfo completionInfo = mApplicationSpecifiedCompletions[index]; ic.commitCompletion(completionInfo); - ic.endBatchEdit(); } return; } |