diff options
author | 2012-07-11 17:32:23 +0900 | |
---|---|---|
committer | 2012-07-12 15:09:57 +0900 | |
commit | 2549b4978e5b0460d0f34a5e4016374ac2198753 (patch) | |
tree | 64ddad1a25cee13ef1b07f117b352147d179fb4f /java/src | |
parent | 02f1c1534c2060aaea7a9a020ce87f6c5ff5d8e0 (diff) | |
download | latinime-2549b4978e5b0460d0f34a5e4016374ac2198753.tar.gz latinime-2549b4978e5b0460d0f34a5e4016374ac2198753.tar.xz latinime-2549b4978e5b0460d0f34a5e4016374ac2198753.zip |
Cleanup (A114)
Change-Id: I7e24e0aeae7c004cae310ae9f46cf90dac2d4d14
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/Suggest.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java index 7ebbbabe8..fdc172af2 100644 --- a/java/src/com/android/inputmethod/latin/Suggest.java +++ b/java/src/com/android/inputmethod/latin/Suggest.java @@ -215,8 +215,9 @@ public class Suggest { // same time, it feels wrong that the SuggestedWord object includes information about // the current settings. It may also be useful to know, when the setting is off, whether // the word *would* have been auto-corrected. - if (!isCorrectionEnabled || !allowsToBeAutoCorrected || wordComposer.isMostlyCaps() - || wordComposer.isResumed() || !hasMainDictionary()) { + if (!isCorrectionEnabled || !allowsToBeAutoCorrected || !wordComposer.isComposingWord() + || wordComposer.isMostlyCaps() || wordComposer.isResumed() + || !hasMainDictionary()) { // If we don't have a main dictionary, we never want to auto-correct. The reason for // this is, the user may have a contact whose name happens to match a valid word in // their language, and it will unexpectedly auto-correct. For example, if the user @@ -278,7 +279,7 @@ public class Suggest { // actual word, it says typedWordValid = false, which looks wrong. We should either // rename the attribute or change the value. !allowsToBeAutoCorrected /* typedWordValid */, - !isPrediction && hasAutoCorrection, /* willAutoCorrect */ + hasAutoCorrection, /* willAutoCorrect */ false /* isPunctuationSuggestions */, false /* isObsoleteSuggestions */, isPrediction); |