aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-03-09 12:55:52 +0900
committerJean Chalard <jchalard@google.com>2012-03-09 12:56:48 +0900
commit8cd847c2fab2d3563dce0c0d24083d3aff20fb28 (patch)
tree0eb57d6c878c062b6a86deedf753925b9b79c457 /java/src
parent94b20c90d86aa042c2f361597665045271956dec (diff)
downloadlatinime-8cd847c2fab2d3563dce0c0d24083d3aff20fb28.tar.gz
latinime-8cd847c2fab2d3563dce0c0d24083d3aff20fb28.tar.xz
latinime-8cd847c2fab2d3563dce0c0d24083d3aff20fb28.zip
Remove a provably useless test (B4)
If !mInputAttributes.mInputTypeNoAutoCorrect then mCorrectionMode will not have allowed #hasAutoCorrection() to return true. Change-Id: I1b498d5aeb26194c765cc9b9dcb24d980de43894
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 1a164c6f8..46d78acf8 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.