diff options
author | 2011-12-08 05:14:26 -0800 | |
---|---|---|
committer | 2011-12-08 05:14:26 -0800 | |
commit | 92e5756dfb4c2d5f0ebd2da53ba1a8fd9f633721 (patch) | |
tree | c23ed2c03e11f689e60fdc8aae37f8c61b1dc4cd /java/src | |
parent | c1fdd966a73c2ddda73307d5f811935dbac5bf69 (diff) | |
parent | 283b0c2b642030539ba3e41f3f54b6aed6bb9e2d (diff) | |
download | latinime-92e5756dfb4c2d5f0ebd2da53ba1a8fd9f633721.tar.gz latinime-92e5756dfb4c2d5f0ebd2da53ba1a8fd9f633721.tar.xz latinime-92e5756dfb4c2d5f0ebd2da53ba1a8fd9f633721.zip |
Merge "Cleanup"
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index ab41b1018..5ee69d1c4 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -2396,11 +2396,8 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar // TODO: cleanup messy flags final boolean shouldAutoCorrect = mSettingsValues.mAutoCorrectEnabled && !mInputTypeNoAutoCorrect; - mCorrectionMode = (shouldAutoCorrect && mSettingsValues.mAutoCorrectEnabled) - ? Suggest.CORRECTION_FULL - : (shouldAutoCorrect ? Suggest.CORRECTION_BASIC : Suggest.CORRECTION_NONE); - mCorrectionMode = (mSettingsValues.mBigramSuggestionEnabled && shouldAutoCorrect - && mSettingsValues.mAutoCorrectEnabled) + mCorrectionMode = shouldAutoCorrect ? Suggest.CORRECTION_FULL : Suggest.CORRECTION_NONE; + mCorrectionMode = (mSettingsValues.mBigramSuggestionEnabled && shouldAutoCorrect) ? Suggest.CORRECTION_FULL_BIGRAM : mCorrectionMode; if (mSuggest != null) { mSuggest.setCorrectionMode(mCorrectionMode); |