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

Commit 9909d6aa authored by Jean Chalard's avatar Jean Chalard Committed by Android (Google) Code Review
Browse files

Merge "[IL93] Refactor a method inside another"

parents cbf54dea 37e1cc93
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1011,7 +1011,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
                false /* isPrediction */);
        // When in fullscreen mode, show completions generated by the application
        setSuggestedWords(suggestedWords);
        setAutoCorrectionIndicator(false);
        setSuggestionStripShown(true);
        if (ProductionFlag.USES_DEVELOPMENT_ONLY_DIAGNOSTICS) {
            ResearchLogger.latinIME_onDisplayCompletions(applicationSpecifiedCompletions);
@@ -1336,6 +1335,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
            mSuggestionStripView.setSuggestions(words);
            mKeyboardSwitcher.onAutoCorrectionStateChanged(words.mWillAutoCorrect);
        }
        setAutoCorrectionIndicator(words.mWillAutoCorrect);
    }

    private void setAutoCorrectionIndicator(final boolean newAutoCorrectionIndicator) {
@@ -1440,7 +1440,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
            mInputLogic.mWordComposer.setAutoCorrection(autoCorrection);
        }
        setSuggestedWords(suggestedWords);
        setAutoCorrectionIndicator(suggestedWords.mWillAutoCorrect);
        setSuggestionStripShown(isSuggestionsStripVisible());
        // Cache the auto-correction in accessibility code so we can speak it if the user
        // touches a key that will insert it.
@@ -1558,7 +1557,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
        } else {
            setSuggestedWords(currentSettings.mSpacingAndPunctuations.mSuggestPuncList);
        }
        setAutoCorrectionIndicator(false);
        setSuggestionStripShown(isSuggestionsStripVisible());
    }