diff options
author | 2014-01-30 03:44:53 +0000 | |
---|---|---|
committer | 2014-01-30 03:44:54 +0000 | |
commit | e5040f6b0d4101c55c11d5e200dc2b203b7cbdc0 (patch) | |
tree | e6ce61955b96d5c7bc50732c83ba3468b4fd3da4 /java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java | |
parent | 26bd46095a05843e7574dfcf7db53406f215525d (diff) | |
parent | 1d2e4f9dccfba925dda75a1ded569c3b62f639ed (diff) | |
download | latinime-e5040f6b0d4101c55c11d5e200dc2b203b7cbdc0.tar.gz latinime-e5040f6b0d4101c55c11d5e200dc2b203b7cbdc0.tar.xz latinime-e5040f6b0d4101c55c11d5e200dc2b203b7cbdc0.zip |
Merge "[IL103] Save the typed word separately in SuggestedWords."
Diffstat (limited to 'java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java index ce3ef5374..c02f7318a 100644 --- a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java +++ b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java @@ -1225,11 +1225,10 @@ public final class InputLogic { } else { // We found suggestion spans in the word. We'll create the SuggestedWords out of // them, and make willAutoCorrect false. - final SuggestedWords suggestedWords = new SuggestedWords(suggestions, + final SuggestedWords suggestedWords = new SuggestedWords(suggestions, typedWord, true /* typedWordValid */, false /* willAutoCorrect */, false /* isPunctuationSuggestions */, false /* isObsoleteSuggestions */, - false /* isPrediction */); - // We need to pass typedWord because mWordComposer.mTypedWord may differ from typedWord. + false /* isPrediction */, SuggestedWords.NOT_A_SEQUENCE_NUMBER); mLatinIME.unsetIsAutoCorrectionIndicatorOnAndCallShowSuggestionStrip(suggestedWords, typedWord); } |