Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7204eab3 authored by Jean Chalard's avatar Jean Chalard
Browse files

Precompute two values that never change

Change-Id: Ic54e7926028ea8374564da5e5004d710f42c53e1
parent 38e535e5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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());
    }