Merge "Show last valid suggestions when tap typing gets no suggestion"

This commit is contained in:
Tadashi G. Takaoka 2012-12-16 22:53:12 -08:00 committed by Android (Google) Code Review
commit 609fb7d940

View File

@ -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
// revert to suggestions - although it is unclear how we can come here if it's displayed.
if (suggestedWords.size() > 1 || typedWord.length() <= 1
|| !suggestedWords.mTypedWordValid
|| suggestedWords.mTypedWordValid
|| mSuggestionStripView.isShowingAddToDictionaryHint()) {
return suggestedWords;
} else {