diff options
author | 2011-08-04 04:17:33 -0700 | |
---|---|---|
committer | 2011-08-04 04:17:33 -0700 | |
commit | ac21e0a3492c9f806ec39eaa77e95af6e7bb5908 (patch) | |
tree | 3dd768ddfc19b2431019cfa3216e7edb0ebdf7b2 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 2e2906bc1793c0389d9d921bded04fb1de252ab6 (diff) | |
parent | 043f7841985916717f4fa821fe3e423daf3ff2f5 (diff) | |
download | latinime-ac21e0a3492c9f806ec39eaa77e95af6e7bb5908.tar.gz latinime-ac21e0a3492c9f806ec39eaa77e95af6e7bb5908.tar.xz latinime-ac21e0a3492c9f806ec39eaa77e95af6e7bb5908.zip |
Merge "Create a way to pass the proximity info to the dictionary"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 836c55a6e..6c91c454c 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1600,7 +1600,8 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar } // getSuggestedWordBuilder handles gracefully a null value of prevWord final SuggestedWords.Builder builder = mSuggest.getSuggestedWordBuilder( - mKeyboardSwitcher.getKeyboardView(), wordComposer, prevWord); + mKeyboardSwitcher.getKeyboardView(), wordComposer, prevWord, + mKeyboardSwitcher.getLatinKeyboard().getProximityInfo()); boolean autoCorrectionAvailable = !mInputTypeNoAutoCorrect && mSuggest.hasAutoCorrection(); final CharSequence typedWord = wordComposer.getTypedWord(); @@ -1825,7 +1826,8 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar final CharSequence prevWord = EditingUtils.getThisWord(getCurrentInputConnection(), mSettingsValues.mWordSeparators); SuggestedWords.Builder builder = mSuggest.getSuggestedWordBuilder( - mKeyboardSwitcher.getKeyboardView(), sEmptyWordComposer, prevWord); + mKeyboardSwitcher.getKeyboardView(), sEmptyWordComposer, prevWord, + mKeyboardSwitcher.getLatinKeyboard().getProximityInfo()); if (builder.size() > 0) { // Explicitly supply an empty typed word (the no-second-arg version of |