Precompute two values that never change
Change-Id: Ic54e7926028ea8374564da5e5004d710f42c53e1main
parent
38e535e596
commit
7204eab3da
|
@ -1715,7 +1715,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
|||
|
||||
public void clearSuggestions() {
|
||||
setSuggestions(SuggestedWords.EMPTY);
|
||||
setAutoCorrectionIndicator(Utils.willAutoCorrect(SuggestedWords.EMPTY));
|
||||
setAutoCorrectionIndicator(false);
|
||||
}
|
||||
|
||||
public void setSuggestions(final SuggestedWords words) {
|
||||
|
@ -2026,7 +2026,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
|||
|
||||
public void setPunctuationSuggestions() {
|
||||
setSuggestions(mSettingsValues.mSuggestPuncList);
|
||||
setAutoCorrectionIndicator(Utils.willAutoCorrect(mSettingsValues.mSuggestPuncList));
|
||||
setAutoCorrectionIndicator(false);
|
||||
setSuggestionStripShown(isSuggestionsStripVisible());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue