Precompute two values that never change

Change-Id: Ic54e7926028ea8374564da5e5004d710f42c53e1
main
Jean Chalard 2012-03-02 20:04:42 +09:00
parent 38e535e596
commit 7204eab3da
1 changed files with 2 additions and 2 deletions

View File

@ -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());
}