diff options
author | 2014-06-16 09:54:20 +0000 | |
---|---|---|
committer | 2014-06-10 22:31:57 +0000 | |
commit | 8a23703763fdbda06f1d272f47064334a5eeda14 (patch) | |
tree | 0026bf97e6c9cd1d3b546dc11c122090a290225d /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 37c49f63dfe5cd2385d808cd113a3b46603fc5d4 (diff) | |
parent | deccc23564304b11d58590041f25adffdf6e1b6a (diff) | |
download | latinime-8a23703763fdbda06f1d272f47064334a5eeda14.tar.gz latinime-8a23703763fdbda06f1d272f47064334a5eeda14.tar.xz latinime-8a23703763fdbda06f1d272f47064334a5eeda14.zip |
Merge "[CM1] Let predictions be aware of capitalize mode."
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 5c55faa93..a8f9efb05 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1389,18 +1389,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen callback.onGetSuggestedWords(SuggestedWords.EMPTY); return; } - final SettingsValues currentSettings = mSettings.getCurrent(); - final int[] additionalFeaturesOptions = currentSettings.mAdditionalFeaturesSettingValues; - mInputLogic.mSuggest.getSuggestedWords(mInputLogic.mWordComposer, - mInputLogic.getPrevWordsInfoFromNthPreviousWordForSuggestion( - currentSettings.mSpacingAndPunctuations, - // Get the word on which we should search the bigrams. If we are composing - // a word, it's whatever is *before* the half-committed word in the buffer, - // hence 2; if we aren't, we should just skip whitespace if any, so 1. - mInputLogic.mWordComposer.isComposingWord() ? 2 : 1), - keyboard.getProximityInfo(), currentSettings.mBlockPotentiallyOffensive, - currentSettings.mAutoCorrectionEnabled, additionalFeaturesOptions, sessionId, - sequenceNumber, callback); + mInputLogic.getSuggestedWords(mSettings.getCurrent(), keyboard.getProximityInfo(), + mKeyboardSwitcher.getKeyboardShiftMode(), sessionId, sequenceNumber, callback); } @Override |