diff options
Diffstat (limited to 'java/src/com/android/inputmethod')
-rw-r--r-- | java/src/com/android/inputmethod/latin/Suggest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java index aa85d895f..fda20953f 100644 --- a/java/src/com/android/inputmethod/latin/Suggest.java +++ b/java/src/com/android/inputmethod/latin/Suggest.java @@ -233,8 +233,8 @@ public class Suggest { final CharSequence autoCorrection; if (null != whitelistedWord) { autoCorrection = whitelistedWord; - } else if (!TextUtils.isEmpty(consideredWord) && - !AutoCorrection.allowsToBeAutoCorrected(mDictionaries, consideredWord, false)) { + } else if (!AutoCorrection.allowsToBeAutoCorrected( + mDictionaries, consideredWord, false)) { autoCorrection = consideredWord; } else if (AutoCorrection.hasAutoCorrectionForBinaryDictionary(bestSuggestion, consideredWord, mAutoCorrectionThreshold)) { |