aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java14
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