mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Update suggestions when user presses the backspace even when there is not two or more suggestions"
This commit is contained in:
commit
4866758a98
@ -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)
|
||||
return;
|
||||
SuggestedWords previousSuggestions = mSuggestionsView.getSuggestions();
|
||||
if (previousSuggestions == mSettingsValues.mSuggestPuncList) {
|
||||
if (builder.size() == 0) {
|
||||
return;
|
||||
}
|
||||
previousSuggestions = SuggestedWords.EMPTY;
|
||||
}
|
||||
builder.addTypedWordAndPreviousSuggestions(typedWord, previousSuggestions);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user