aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-03-08 22:26:20 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-03-08 22:26:20 -0800
commitd48b76267a8acb400bf3462cb787505d5bd8d12c (patch)
tree314f2bf3b66e6e02c52988d827f2f4ebf4022941 /java/src
parent2d82757fc6ca83ead1623da3a658c856b37aab03 (diff)
parent90bd4efd101ce36d3b0f9d9d95d2c5dca6603c39 (diff)
downloadlatinime-d48b76267a8acb400bf3462cb787505d5bd8d12c.tar.gz
latinime-d48b76267a8acb400bf3462cb787505d5bd8d12c.tar.xz
latinime-d48b76267a8acb400bf3462cb787505d5bd8d12c.zip
Merge "Remove a useless test (B7)"
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/AutoCorrection.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/AutoCorrection.java b/java/src/com/android/inputmethod/latin/AutoCorrection.java
index e9ed90e7b..9c35f8f6f 100644
--- a/java/src/com/android/inputmethod/latin/AutoCorrection.java
+++ b/java/src/com/android/inputmethod/latin/AutoCorrection.java
@@ -98,8 +98,7 @@ public class AutoCorrection {
private static boolean hasAutoCorrectionForBinaryDictionary(WordComposer wordComposer,
ArrayList<CharSequence> suggestions, int[] sortedScores,
CharSequence consideredWord, double autoCorrectionThreshold) {
- if (wordComposer.size() > 1
- && consideredWord != null && suggestions.size() > 0 && sortedScores.length > 0) {
+ if (wordComposer.size() > 1 && suggestions.size() > 0 && sortedScores.length > 0) {
final CharSequence autoCorrectionSuggestion = suggestions.get(0);
final int autoCorrectionSuggestionScore = sortedScores[0];
// TODO: when the normalized score of the first suggestion is nearly equals to