diff options
author | 2014-10-14 10:52:31 +0000 | |
---|---|---|
committer | 2014-10-14 10:52:32 +0000 | |
commit | d1471ee053a788dd68729d0a8a603c17444f7cb3 (patch) | |
tree | c68effa51359215b269ab4304d140f79a21a6470 /java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java | |
parent | 95f100ba404c3f905739db628ec71b7c1b7b5ace (diff) | |
parent | 29b4f7aa671a8229bf0c03170b8df98e456e3fad (diff) | |
download | latinime-d1471ee053a788dd68729d0a8a603c17444f7cb3.tar.gz latinime-d1471ee053a788dd68729d0a8a603c17444f7cb3.tar.xz latinime-d1471ee053a788dd68729d0a8a603c17444f7cb3.zip |
Merge "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); } |