diff options
author | 2012-06-28 16:58:54 +0900 | |
---|---|---|
committer | 2012-06-29 15:12:51 +0900 | |
commit | b01cdb975a0001a5d4bdc66e6ae451f2deab439d (patch) | |
tree | 80074c5156eb4b23b0464a7410fc92b3d983f14a /java/src/com/android/inputmethod/latin/Suggest.java | |
parent | 42dde06782be3c958af222ae284e58baf629ff61 (diff) | |
download | latinime-b01cdb975a0001a5d4bdc66e6ae451f2deab439d.tar.gz latinime-b01cdb975a0001a5d4bdc66e6ae451f2deab439d.tar.xz latinime-b01cdb975a0001a5d4bdc66e6ae451f2deab439d.zip |
Inline a method (A17)
This will allow us to remove unnecessary processing
Change-Id: I251dfdaffb077906186686ebe65fd82e1e360bd2
Diffstat (limited to 'java/src/com/android/inputmethod/latin/Suggest.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/Suggest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java index ed009375e..aa85d895f 100644 --- a/java/src/com/android/inputmethod/latin/Suggest.java +++ b/java/src/com/android/inputmethod/latin/Suggest.java @@ -233,7 +233,8 @@ public class Suggest { final CharSequence autoCorrection; if (null != whitelistedWord) { autoCorrection = whitelistedWord; - } else if (AutoCorrection.shouldAutoCorrectToSelf(mDictionaries, consideredWord)) { + } else if (!TextUtils.isEmpty(consideredWord) && + !AutoCorrection.allowsToBeAutoCorrected(mDictionaries, consideredWord, false)) { autoCorrection = consideredWord; } else if (AutoCorrection.hasAutoCorrectionForBinaryDictionary(bestSuggestion, consideredWord, mAutoCorrectionThreshold)) { |