diff options
author | 2012-03-09 18:01:31 +0900 | |
---|---|---|
committer | 2012-03-09 18:38:20 +0900 | |
commit | de165aed2ab9bfa13b5227cfe29d0770092db468 (patch) | |
tree | ff382abb73614d11c24ea5077447ddaad9bed7ba /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 6f722c83014eb59bf5d579171d2c973fd7b83e69 (diff) | |
download | latinime-de165aed2ab9bfa13b5227cfe29d0770092db468.tar.gz latinime-de165aed2ab9bfa13b5227cfe29d0770092db468.tar.xz latinime-de165aed2ab9bfa13b5227cfe29d0770092db468.zip |
Separate bigram prediction from suggestion process
Change-Id: Ibdef206fbd6688a45cebbd7fb8a9f6cd175d03b0
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 1a8171f20..b8b57dc4e 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -2025,7 +2025,6 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar separatorCode); } - private static final WordComposer sEmptyWordComposer = new WordComposer(); public void updateBigramPredictions() { if (mSuggest == null || !isSuggestionsRequested()) return; @@ -2037,8 +2036,8 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar final CharSequence prevWord = EditingUtils.getThisWord(getCurrentInputConnection(), mSettingsValues.mWordSeparators); - SuggestedWords.Builder builder = mSuggest.getSuggestedWordBuilder(sEmptyWordComposer, - prevWord, mKeyboardSwitcher.getKeyboard().getProximityInfo(), mCorrectionMode); + SuggestedWords.Builder builder = mSuggest.getBigramPredictionWordBuilder(prevWord, + mKeyboardSwitcher.getKeyboard().getProximityInfo(), mCorrectionMode); if (builder.size() > 0) { // Explicitly supply an empty typed word (the no-second-arg version of |