mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Keep previous suggestions when there is only one suggestion found"
This commit is contained in:
commit
ffb864a768
@ -184,6 +184,9 @@ public class CandidateView extends LinearLayout implements OnClickListener, OnLo
|
||||
|
||||
public void setSuggestions(List<CharSequence> suggestions, boolean completions,
|
||||
boolean typedWordValid, boolean haveMinimalSuggestion) {
|
||||
// Don't update suggestions when there is zero or only one suggestion found.
|
||||
if (suggestions != null && suggestions.size() <= 1)
|
||||
return;
|
||||
if (mShowingAutoCorrectionInverted) {
|
||||
mHandler.postUpdateSuggestions(suggestions, completions, typedWordValid,
|
||||
haveMinimalSuggestion);
|
||||
|
Loading…
Reference in New Issue
Block a user