diff options
author | 2012-06-28 20:19:15 +0900 | |
---|---|---|
committer | 2012-07-02 15:46:11 +0900 | |
commit | 4ca05e24747896348ea1d4431fa0cd442552f33e (patch) | |
tree | 61147db55479e727c334acccfc57c524e984a000 /java/src | |
parent | 7ad088a4cf5593a2c72e143f10ba2e7ffed8bb09 (diff) | |
download | latinime-4ca05e24747896348ea1d4431fa0cd442552f33e.tar.gz latinime-4ca05e24747896348ea1d4431fa0cd442552f33e.tar.xz latinime-4ca05e24747896348ea1d4431fa0cd442552f33e.zip |
Refactoring (A43)
Change-Id: Ib0b6f36999518096819ada2f19365767cb5f9931
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/Suggest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java index 9e9ffc76a..b050c3e90 100644 --- a/java/src/com/android/inputmethod/latin/Suggest.java +++ b/java/src/com/android/inputmethod/latin/Suggest.java @@ -229,8 +229,8 @@ public class Suggest { mWhiteListDictionary.getWhitelistedWord(consideredWord); final boolean hasAutoCorrection; - if (!isCorrectionEnabled || wordComposer.isMostlyCaps() || wordComposer.isResumed() - || !hasMainDictionary()) { + if (!isCorrectionEnabled || !allowsToBeAutoCorrected || 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 @@ -293,7 +293,7 @@ public class Suggest { // actual word, it says typedWordValid = false, which looks wrong. We should either // rename the attribute or change the value. !isPrediction && !allowsToBeAutoCorrected /* typedWordValid */, - !isPrediction && hasAutoCorrection && allowsToBeAutoCorrected, /* willAutoCorrect */ + !isPrediction && hasAutoCorrection, /* willAutoCorrect */ false /* isPunctuationSuggestions */, false /* isObsoleteSuggestions */, isPrediction); |