aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-03-08 22:22:20 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-03-08 22:22:20 -0800
commit5a7cb9305a03746e779770b3677ee0c9c85ea4ca (patch)
tree66d536321aff511b9309605a3d8f7f12aecad8f4 /java/src
parent54392438c57544c7bcabc0def058a0dfba9243f1 (diff)
parent8cd847c2fab2d3563dce0c0d24083d3aff20fb28 (diff)
downloadlatinime-5a7cb9305a03746e779770b3677ee0c9c85ea4ca.tar.gz
latinime-5a7cb9305a03746e779770b3677ee0c9c85ea4ca.tar.xz
latinime-5a7cb9305a03746e779770b3677ee0c9c85ea4ca.zip
Merge "Remove a provably useless test (B4)"
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index a6552a271..13ba44be0 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1823,8 +1823,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
final SuggestedWords.Builder builder = mSuggest.getSuggestedWordBuilder(mWordComposer,
prevWord, mKeyboardSwitcher.getKeyboard().getProximityInfo(), mCorrectionMode);
- boolean autoCorrectionAvailable = !mInputAttributes.mInputTypeNoAutoCorrect
- && mSuggest.hasAutoCorrection();
+ boolean autoCorrectionAvailable = mSuggest.hasAutoCorrection();
// Here, we want to promote a whitelisted word if exists.
// TODO: Change this scheme - a boolean is not enough. A whitelisted word may be "valid"
// but still autocorrected from - in the case the whitelist only capitalizes the word.