Loading java/src/com/android/inputmethod/latin/LatinIME.java +4 −11 Original line number Diff line number Diff line Loading @@ -1934,18 +1934,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) { Loading Loading
java/src/com/android/inputmethod/latin/LatinIME.java +4 −11 Original line number Diff line number Diff line Loading @@ -1934,18 +1934,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) { Loading