diff options
author | 2012-03-09 19:42:20 +0900 | |
---|---|---|
committer | 2012-03-09 20:45:37 +0900 | |
commit | ed9986824e1339855376771ad29fae4de921a029 (patch) | |
tree | 98e6e52fcfa084a890deea031b35f23bbce40dc8 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 022ef7d13b4ed2addcafc061bb6a15fc7e52a598 (diff) | |
download | latinime-ed9986824e1339855376771ad29fae4de921a029.tar.gz latinime-ed9986824e1339855376771ad29fae4de921a029.tar.xz latinime-ed9986824e1339855376771ad29fae4de921a029.zip |
Move some auto-correction logic to where it belongs
Change-Id: I897c5ec3a630a4a6bfc593906df4d3fc7b244482
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 5b4365902..5e1795a26 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1830,19 +1830,6 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar // length == 1). if (builder.size() > 1 || typedWord.length() == 1 || !builder.allowsToBeAutoCorrected() || mSuggestionsView.isShowingAddToDictionaryHint()) { - boolean autoCorrectionAvailable = builder.hasAutoCorrection(); - if (mCorrectionMode == Suggest.CORRECTION_FULL - || mCorrectionMode == Suggest.CORRECTION_FULL_BIGRAM) { - autoCorrectionAvailable |= !builder.allowsToBeAutoCorrected(); - } - // Don't auto-correct words with multiple capital letter - autoCorrectionAvailable &= !mWordComposer.isMostlyCaps(); - builder.setTypedWordValid(!builder.allowsToBeAutoCorrected()).setHasMinimalSuggestion( - autoCorrectionAvailable); - if (Suggest.shouldBlockAutoCorrectionBySafetyNet(builder, mSuggest, - mSettingsValues.mAutoCorrectionThreshold)) { - builder.setShouldBlockAutoCorrectionBySafetyNet(); - } showSuggestions(builder.build(), typedWord); } else { SuggestedWords previousSuggestions = mSuggestionsView.getSuggestions(); |