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

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

Merge "Remove a redundant test (A53)"

parents 9636735c 07833660
Loading
Loading
Loading
Loading
+4 −11
Original line number Diff line number Diff line
@@ -1930,18 +1930,11 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
    }

    private SuggestedWords updateBigramPredictions(final CharSequence typedWord) {
        if (mCurrentSettings.mCorrectionEnabled) {
        final CharSequence prevWord = mConnection.getThisWord(mCurrentSettings.mWordSeparators);
            if (!TextUtils.isEmpty(prevWord)) {
                // If we call getSuggestedWord with mCorrectionEnabled == false or with
                // an empty prevWord, we'll get a 0-sized list of suggestions.
        return mSuggest.getSuggestedWords(mWordComposer,
                prevWord, mKeyboardSwitcher.getKeyboard().getProximityInfo(),
                mCurrentSettings.mCorrectionEnabled, true);
    }
        }
        return null;
    }

    public void setPunctuationSuggestions() {
        if (mCurrentSettings.mBigramPredictionEnabled) {