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

Commit 5e573a1f authored by Jean Chalard's avatar Jean Chalard
Browse files

Remove a useless parameter (A91A)

Change-Id: I1d1758048649ef337875a5141d825569af7ad38c
parent f5943153
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1696,7 +1696,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
                mWordComposer.isComposingWord() ? 2 : 1);
        SuggestedWords suggestedWords = mSuggest.getSuggestedWords(mWordComposer,
                prevWord, mKeyboardSwitcher.getKeyboard().getProximityInfo(),
                mCurrentSettings.mCorrectionEnabled, !mWordComposer.isComposingWord());
                mCurrentSettings.mCorrectionEnabled);
        suggestedWords = maybeRetrieveOlderSuggestions(typedWord, suggestedWords);

        if (null != suggestedWords && suggestedWords.size() > 0) {
+2 −4
Original line number Diff line number Diff line
@@ -156,10 +156,8 @@ public class Suggest {
    // TODO: cleanup dictionaries looking up and suggestions building with SuggestedWords.Builder
    public SuggestedWords getSuggestedWords(
            final WordComposer wordComposer, CharSequence prevWordForBigram,
            final ProximityInfo proximityInfo, final boolean isCorrectionEnabled,
            // TODO: remove isPrediction parameter. It effectively means the same thing
            // as wordComposer.size() <= 1
            final boolean isPrediction) {
            final ProximityInfo proximityInfo, final boolean isCorrectionEnabled) {
        final boolean isPrediction = !wordComposer.isComposingWord();
        LatinImeLogger.onStartSuggestion(prevWordForBigram);
        final boolean isFirstCharCapitalized =
                !isPrediction && wordComposer.isFirstCharCapitalized();