Show last valid suggestions when tap typing gets no suggestion
Bug: 7872809 Change-Id: Ib5a255de7968aba214249c1b934327d248a15efdmain
parent
d15e80d6e2
commit
b808188b2f
|
@ -2020,7 +2020,7 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
|
||||||
// old suggestions. Also, if we are showing the "add to dictionary" hint, we need to
|
// old suggestions. Also, if we are showing the "add to dictionary" hint, we need to
|
||||||
// revert to suggestions - although it is unclear how we can come here if it's displayed.
|
// revert to suggestions - although it is unclear how we can come here if it's displayed.
|
||||||
if (suggestedWords.size() > 1 || typedWord.length() <= 1
|
if (suggestedWords.size() > 1 || typedWord.length() <= 1
|
||||||
|| !suggestedWords.mTypedWordValid
|
|| suggestedWords.mTypedWordValid
|
||||||
|| mSuggestionStripView.isShowingAddToDictionaryHint()) {
|
|| mSuggestionStripView.isShowingAddToDictionaryHint()) {
|
||||||
return suggestedWords;
|
return suggestedWords;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue