mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Have empty suggestions go through setNeutralSuggestions."
This commit is contained in:
commit
5d9be8039c
@ -1408,10 +1408,12 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||
// because it may differ from mWordComposer.mTypedWord.
|
||||
autoCorrection = sourceSuggestedWords.mTypedWord;
|
||||
}
|
||||
if (SuggestedWords.EMPTY != suggestedWords) {
|
||||
if (SuggestedWords.EMPTY == suggestedWords) {
|
||||
setNeutralSuggestionStrip();
|
||||
} else {
|
||||
mInputLogic.mWordComposer.setAutoCorrection(autoCorrection);
|
||||
}
|
||||
setSuggestedWords(suggestedWords, isSuggestionsStripVisible());
|
||||
}
|
||||
// Cache the auto-correction in accessibility code so we can speak it if the user
|
||||
// touches a key that will insert it.
|
||||
AccessibilityUtils.getInstance().setAutoCorrection(suggestedWords,
|
||||
|
Loading…
Reference in New Issue
Block a user