diff options
author | 2014-10-14 10:57:16 +0000 | |
---|---|---|
committer | 2014-10-14 10:57:16 +0000 | |
commit | fb09fa1b2256ae261db66486e64294567c7aedfb (patch) | |
tree | 1e462732761f76a761beb4b66ce19a616f12074b /java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java | |
parent | cbffb7958489659856433049f55a0b7b0519b94c (diff) | |
parent | d1471ee053a788dd68729d0a8a603c17444f7cb3 (diff) | |
download | latinime-fb09fa1b2256ae261db66486e64294567c7aedfb.tar.gz latinime-fb09fa1b2256ae261db66486e64294567c7aedfb.tar.xz latinime-fb09fa1b2256ae261db66486e64294567c7aedfb.zip |
am d1471ee0: Merge "Remove shouldBlockAutoCorrectionBySafetyNet"
* commit 'd1471ee053a788dd68729d0a8a603c17444f7cb3':
Remove shouldBlockAutoCorrectionBySafetyNet
Diffstat (limited to 'java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java index 0c8441454..7b66bbb75 100644 --- a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java +++ b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java @@ -321,18 +321,6 @@ final class SuggestionStripLayoutHelper { } else { color = mColorSuggested; } - if (DebugFlags.DEBUG_ENABLED && suggestedWords.size() > 1) { - // If we auto-correct, then the autocorrection is in slot 0 and the typed word - // is in slot 1. - if (indexInSuggestedWords == SuggestedWords.INDEX_OF_AUTO_CORRECTION - && suggestedWords.mWillAutoCorrect - && AutoCorrectionUtils.shouldBlockAutoCorrectionBySafetyNet( - suggestedWords.getLabel(SuggestedWords.INDEX_OF_AUTO_CORRECTION), - suggestedWords.getLabel(SuggestedWords.INDEX_OF_TYPED_WORD))) { - return 0xFFFF0000; - } - } - if (suggestedWords.mIsObsoleteSuggestions && !isTypedWord) { return applyAlpha(color, mAlphaObsoleted); } |