aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-06-28 18:28:29 +0900
committerJean Chalard <jchalard@google.com>2012-06-29 17:00:56 +0900
commitf4267c052160d8865399a758ce9d60916ed783ec (patch)
treeb3978e7249e15fcf956a58b95b37b2dcc985c23c /java/src
parent9e0af5773649140b5cf3f70c6def207c5a06627c (diff)
downloadlatinime-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.java2
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 {