diff options
author | 2014-12-09 19:23:27 +0900 | |
---|---|---|
committer | 2014-12-09 19:23:27 +0900 | |
commit | 515c5081352a6b8feaaf570df7ddb6d3676006e7 (patch) | |
tree | 81b0a203cdae555a97c3fb97d75edf241ff3cc9e /java/src/com/android/inputmethod/latin/utils | |
parent | d179e40899b648ce2ceb8543678176f9a696ff30 (diff) | |
download | latinime-515c5081352a6b8feaaf570df7ddb6d3676006e7.tar.gz latinime-515c5081352a6b8feaaf570df7ddb6d3676006e7.tar.xz latinime-515c5081352a6b8feaaf570df7ddb6d3676006e7.zip |
Quit auto-correct explicit accented letters to base letters.
Bug: 7677193
Change-Id: I66eddbf27a9db8682c0347a1be19922792a3bea7
Diffstat (limited to 'java/src/com/android/inputmethod/latin/utils')
-rw-r--r-- | java/src/com/android/inputmethod/latin/utils/AutoCorrectionUtils.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/utils/AutoCorrectionUtils.java b/java/src/com/android/inputmethod/latin/utils/AutoCorrectionUtils.java index 2fd257922..c9ecade91 100644 --- a/java/src/com/android/inputmethod/latin/utils/AutoCorrectionUtils.java +++ b/java/src/com/android/inputmethod/latin/utils/AutoCorrectionUtils.java @@ -36,6 +36,10 @@ public final class AutoCorrectionUtils { if (suggestion.isKindOf(SuggestedWordInfo.KIND_WHITELIST)) { return true; } + // TODO: return suggestion.isAprapreateForAutoCorrection(); + if (!suggestion.isAprapreateForAutoCorrection()) { + return false; + } final int autoCorrectionSuggestionScore = suggestion.mScore; // TODO: when the normalized score of the first suggestion is nearly equals to // the normalized score of the second suggestion, behave less aggressive. |