am 4866758a: Merge "Update suggestions when user presses the backspace even when there is not two or more suggestions"

* commit '4866758a98fbf38bedebf65f9ea4993464627ce0':
  Update suggestions when user presses the backspace even when there is not two or more suggestions
This commit is contained in:
satok 2011-09-29 00:20:41 -07:00 committed by Android Git Automerger
commit 070d7913a8

View file

@ -1661,9 +1661,13 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
builder.setTypedWordValid(typedWordValid).setHasMinimalSuggestion(
autoCorrectionAvailable);
} else {
final SuggestedWords previousSuggestions = mSuggestionsView.getSuggestions();
if (previousSuggestions == mSettingsValues.mSuggestPuncList)
SuggestedWords previousSuggestions = mSuggestionsView.getSuggestions();
if (previousSuggestions == mSettingsValues.mSuggestPuncList) {
if (builder.size() == 0) {
return;
}
previousSuggestions = SuggestedWords.EMPTY;
}
builder.addTypedWordAndPreviousSuggestions(typedWord, previousSuggestions);
}
}