diff options
author | 2012-06-28 17:00:35 +0900 | |
---|---|---|
committer | 2012-06-29 15:12:51 +0900 | |
commit | 31b346aac6dc04a2445a17d156906cc308c7e0d4 (patch) | |
tree | 240178509f72bdb120b2a8d497dfb427d46eed7a | |
parent | b01cdb975a0001a5d4bdc66e6ae451f2deab439d (diff) | |
download | latinime-31b346aac6dc04a2445a17d156906cc308c7e0d4.tar.gz latinime-31b346aac6dc04a2445a17d156906cc308c7e0d4.tar.xz latinime-31b346aac6dc04a2445a17d156906cc308c7e0d4.zip |
Remove a useless test (A18)
allowsToBeAutoCorrected always returns false if the word is empty.
This is because the whitelist never contains an empty string,
and isValidWord returns false if the word is empty.
Change-Id: I34ecc2a1563aea6db5b2f12796f251f6598576a2
-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)) { |