aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/BinaryDictionary.java
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2014-05-26 13:56:18 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-05-26 13:56:18 +0000
commit1dab0693d2d993168beae6a3b696297811e959e0 (patch)
treea95613d6030b1a54458307e074f872f71bf87b97 /java/src/com/android/inputmethod/latin/BinaryDictionary.java
parentc96a7901941732e3b2f814d1a3a68ba9116b2172 (diff)
parent0088d1f6683fce0175266b90c3ec04f15ad8daeb (diff)
downloadlatinime-1dab0693d2d993168beae6a3b696297811e959e0.tar.gz
latinime-1dab0693d2d993168beae6a3b696297811e959e0.tar.xz
latinime-1dab0693d2d993168beae6a3b696297811e959e0.zip
am 0088d1f6: Merge "Use whether it\'s exact match to detect distracters."
* commit '0088d1f6683fce0175266b90c3ec04f15ad8daeb': Use whether it's exact match to detect distracters.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/BinaryDictionary.java')
-rw-r--r--java/src/com/android/inputmethod/latin/BinaryDictionary.java7
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]));
}