aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-06-16 09:58:04 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-06-16 09:58:04 +0000
commitde1d005dd03496836394a4f96c84c4874112b275 (patch)
tree0026bf97e6c9cd1d3b546dc11c122090a290225d /java/src/com/android/inputmethod/latin/LatinIME.java
parente8eb3c245a6ee610afd51e079b042feada02a9dc (diff)
parent8a23703763fdbda06f1d272f47064334a5eeda14 (diff)
downloadlatinime-de1d005dd03496836394a4f96c84c4874112b275.tar.gz
latinime-de1d005dd03496836394a4f96c84c4874112b275.tar.xz
latinime-de1d005dd03496836394a4f96c84c4874112b275.zip
am 8a237037: Merge "[CM1] Let predictions be aware of capitalize mode."
* commit '8a23703763fdbda06f1d272f47064334a5eeda14': [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.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