mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
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
@ -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…
x
Reference in New Issue
Block a user