Loading java/src/com/android/inputmethod/latin/LatinIME.java +1 −1 Original line number Diff line number Diff line Loading @@ -2037,7 +2037,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar final CharSequence prevWord = EditingUtils.getThisWord(getCurrentInputConnection(), mSettingsValues.mWordSeparators); SuggestedWords.Builder builder = mSuggest.getBigramPredictionWordBuilder(prevWord, mKeyboardSwitcher.getKeyboard().getProximityInfo(), mCorrectionMode); mCorrectionMode); if (builder.size() > 0) { // Explicitly supply an empty typed word (the no-second-arg version of Loading java/src/com/android/inputmethod/latin/Suggest.java +3 −1 Original line number Diff line number Diff line Loading @@ -262,7 +262,7 @@ public class Suggest implements Dictionary.WordCallback { private static final WordComposer sEmptyWordComposer = new WordComposer(); public SuggestedWords.Builder getBigramPredictionWordBuilder(CharSequence prevWordForBigram, final ProximityInfo proximityInfo, final int correctionMode) { final int correctionMode) { LatinImeLogger.onStartSuggestion(prevWordForBigram); mIsFirstCharCapitalized = false; mIsAllUpperCase = false; Loading @@ -274,6 +274,8 @@ public class Suggest implements Dictionary.WordCallback { LatinImeLogger.onAddSuggestedWord("", Suggest.DIC_USER_TYPED, Dictionary.UNIGRAM); mConsideredWord = ""; // Note that if correctionMode != CORRECTION_FULL_BIGRAM, we'll always return the // same empty SuggestedWords.Builder, which has size() == 0 if (correctionMode == CORRECTION_FULL_BIGRAM) { // At first character typed, search only the bigrams Arrays.fill(mBigramScores, 0); Loading Loading
java/src/com/android/inputmethod/latin/LatinIME.java +1 −1 Original line number Diff line number Diff line Loading @@ -2037,7 +2037,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar final CharSequence prevWord = EditingUtils.getThisWord(getCurrentInputConnection(), mSettingsValues.mWordSeparators); SuggestedWords.Builder builder = mSuggest.getBigramPredictionWordBuilder(prevWord, mKeyboardSwitcher.getKeyboard().getProximityInfo(), mCorrectionMode); mCorrectionMode); if (builder.size() > 0) { // Explicitly supply an empty typed word (the no-second-arg version of Loading
java/src/com/android/inputmethod/latin/Suggest.java +3 −1 Original line number Diff line number Diff line Loading @@ -262,7 +262,7 @@ public class Suggest implements Dictionary.WordCallback { private static final WordComposer sEmptyWordComposer = new WordComposer(); public SuggestedWords.Builder getBigramPredictionWordBuilder(CharSequence prevWordForBigram, final ProximityInfo proximityInfo, final int correctionMode) { final int correctionMode) { LatinImeLogger.onStartSuggestion(prevWordForBigram); mIsFirstCharCapitalized = false; mIsAllUpperCase = false; Loading @@ -274,6 +274,8 @@ public class Suggest implements Dictionary.WordCallback { LatinImeLogger.onAddSuggestedWord("", Suggest.DIC_USER_TYPED, Dictionary.UNIGRAM); mConsideredWord = ""; // Note that if correctionMode != CORRECTION_FULL_BIGRAM, we'll always return the // same empty SuggestedWords.Builder, which has size() == 0 if (correctionMode == CORRECTION_FULL_BIGRAM) { // At first character typed, search only the bigrams Arrays.fill(mBigramScores, 0); Loading