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
This commit is contained in:
parent
9e0af57736
commit
f4267c0521
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue