diff options
author | 2014-05-26 18:45:32 +0900 | |
---|---|---|
committer | 2014-05-26 21:56:20 +0900 | |
commit | a6278eb9c1fbe102259cba392b1459f712ca46e7 (patch) | |
tree | 40d1acf7ee7c94baabaa6c17180c18531059ce65 /java/src/com/android/inputmethod/latin/BinaryDictionary.java | |
parent | 4905d83270720ce9b9121595277dae6ba8102f16 (diff) | |
download | latinime-a6278eb9c1fbe102259cba392b1459f712ca46e7.tar.gz latinime-a6278eb9c1fbe102259cba392b1459f712ca46e7.tar.xz latinime-a6278eb9c1fbe102259cba392b1459f712ca46e7.zip |
Use whether it's exact match to detect distracters.
Bug: 13142176
Change-Id: Id5b7286d28897931f7bfe571be45d46ffeef4adf
Diffstat (limited to 'java/src/com/android/inputmethod/latin/BinaryDictionary.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/BinaryDictionary.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/java/src/com/android/inputmethod/latin/BinaryDictionary.java b/java/src/com/android/inputmethod/latin/BinaryDictionary.java index ef269b87d..97f262989 100644 --- a/java/src/com/android/inputmethod/latin/BinaryDictionary.java +++ b/java/src/com/android/inputmethod/latin/BinaryDictionary.java @@ -326,13 +326,8 @@ public final class BinaryDictionary extends Dictionary { // offensive, then we don't output it unless it's also an exact match. continue; } - final int kind = mOutputTypes[j] & SuggestedWordInfo.KIND_MASK_KIND; - final int score = SuggestedWordInfo.KIND_WHITELIST == kind - ? SuggestedWordInfo.MAX_SCORE : mOutputScores[j]; - // TODO: check that all users of the `kind' parameter are ready to accept - // flags too and pass mOutputTypes[j] instead of kind suggestions.add(new SuggestedWordInfo(new String(mOutputCodePoints, start, len), - score, kind, this /* sourceDict */, + mOutputScores[j], mOutputTypes[j], this /* sourceDict */, mSpaceIndices[j] /* indexOfTouchPointOfSecondWord */, mOutputAutoCommitFirstWordConfidence[0])); } |