diff options
author | 2013-05-27 18:53:43 -0700 | |
---|---|---|
committer | 2013-05-27 18:53:43 -0700 | |
commit | 3d97b95b90a1c40a22981d563e12cfe86f60ae71 (patch) | |
tree | 8805544704a690e93e5c7fba3a9a95ddaa0f874b /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | a2d8d30f8eba001742099096da53e42e77dd367a (diff) | |
download | latinime-3d97b95b90a1c40a22981d563e12cfe86f60ae71.tar.gz latinime-3d97b95b90a1c40a22981d563e12cfe86f60ae71.tar.xz latinime-3d97b95b90a1c40a22981d563e12cfe86f60ae71.zip |
Implement KIND_OOV_CORRECTION
Bug: 9127749
Change-Id: I96db15a3138e6b522c4c6ad16cc7faad577d3772
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 592db35dd..cebc93c18 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -2369,9 +2369,11 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen // Please note that if mSuggest is null, it means that everything is off: suggestion // and correction, so we shouldn't try to show the hint final boolean showingAddToDictionaryHint = - SuggestedWordInfo.KIND_TYPED == suggestionInfo.mKind && mSuggest != null - // If the suggestion is not in the dictionary, the hint should be shown. - && !AutoCorrection.isValidWord(mSuggest, suggestion, true); + (SuggestedWordInfo.KIND_TYPED == suggestionInfo.mKind + || SuggestedWordInfo.KIND_OOV_CORRECTION == suggestionInfo.mKind) + && mSuggest != null + // If the suggestion is not in the dictionary, the hint should be shown. + && !AutoCorrection.isValidWord(mSuggest, suggestion, true); if (mSettings.isInternal()) { Stats.onSeparator((char)Constants.CODE_SPACE, |