Merge "Update suggestions when user presses the backspace even when there is not two or more suggestions"
This commit is contained in:
commit
4866758a98
1 changed files with 7 additions and 3 deletions
|
@ -1661,9 +1661,13 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||||
builder.setTypedWordValid(typedWordValid).setHasMinimalSuggestion(
|
builder.setTypedWordValid(typedWordValid).setHasMinimalSuggestion(
|
||||||
autoCorrectionAvailable);
|
autoCorrectionAvailable);
|
||||||
} else {
|
} else {
|
||||||
final SuggestedWords previousSuggestions = mSuggestionsView.getSuggestions();
|
SuggestedWords previousSuggestions = mSuggestionsView.getSuggestions();
|
||||||
if (previousSuggestions == mSettingsValues.mSuggestPuncList)
|
if (previousSuggestions == mSettingsValues.mSuggestPuncList) {
|
||||||
|
if (builder.size() == 0) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
previousSuggestions = SuggestedWords.EMPTY;
|
||||||
|
}
|
||||||
builder.addTypedWordAndPreviousSuggestions(typedWord, previousSuggestions);
|
builder.addTypedWordAndPreviousSuggestions(typedWord, previousSuggestions);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue