aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorSatoshi Kataoka <satok@google.com>2013-05-28 00:28:44 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-05-28 00:28:44 -0700
commitbdf4bc068c69493e1792dcfa23da07a54d441619 (patch)
treecbf85c5050b4f98312c0be682078c711779a5add /java/src/com/android/inputmethod/latin/LatinIME.java
parentcc496f42ac008ea6597d8cd2ec76099e313b6444 (diff)
parent07e56e76a77ee4164201b7f48aa6f7c8d69a81b9 (diff)
downloadlatinime-bdf4bc068c69493e1792dcfa23da07a54d441619.tar.gz
latinime-bdf4bc068c69493e1792dcfa23da07a54d441619.tar.xz
latinime-bdf4bc068c69493e1792dcfa23da07a54d441619.zip
am 07e56e76: Merge "Implement KIND_OOV_CORRECTION"
* commit '07e56e76a77ee4164201b7f48aa6f7c8d69a81b9': Implement KIND_OOV_CORRECTION
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java8
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,