diff options
author | 2012-06-28 18:28:29 +0900 | |
---|---|---|
committer | 2012-06-29 17:00:56 +0900 | |
commit | f4267c052160d8865399a758ce9d60916ed783ec (patch) | |
tree | b3978e7249e15fcf956a58b95b37b2dcc985c23c /java/src | |
parent | 9e0af5773649140b5cf3f70c6def207c5a06627c (diff) | |
download | latinime-f4267c052160d8865399a758ce9d60916ed783ec.tar.gz latinime-f4267c052160d8865399a758ce9d60916ed783ec.tar.xz latinime-f4267c052160d8865399a758ce9d60916ed783ec.zip |
Fix a small bug (A27)
TypedWordValid and AllowsToBeAutoCorrected are almost the
same thing; the difference is whether the word is also a
whitelist entry or not. In this case, TypedWordValid was
the right one to test.
Change-Id: I695fe5b9f6bbe9d3ba314c646da3a25742c9f4ed
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 97665ecf6..8a9e9ee86 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1718,7 +1718,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen // need to clear the previous state when the user starts typing a word (i.e. typed word's // length == 1). if (suggestedWords.size() > 1 || typedWord.length() == 1 - || !suggestedWords.mAllowsToBeAutoCorrected + || !suggestedWords.mTypedWordValid || mSuggestionsView.isShowingAddToDictionaryHint()) { showSuggestions(suggestedWords, typedWord); } else { |