aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/BinaryDictionary.java
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2014-05-28 11:54:41 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-05-28 11:54:41 +0000
commit5b8887add4ffe9e9b29148d2deec8d085275cd02 (patch)
treec7756685caef581e5c8f8ccac2e8d21dc2298775 /java/src/com/android/inputmethod/latin/BinaryDictionary.java
parenteeea786fb39efee7577c23337ff9c15c01ab1b64 (diff)
parentb1e43d58a6910903aceea51a0615b2fa5570a36b (diff)
downloadlatinime-5b8887add4ffe9e9b29148d2deec8d085275cd02.tar.gz
latinime-5b8887add4ffe9e9b29148d2deec8d085275cd02.tar.xz
latinime-5b8887add4ffe9e9b29148d2deec8d085275cd02.zip
am b1e43d58: Merge "Stop directly checking SuggestedWordInfo.mKind"
* commit 'b1e43d58a6910903aceea51a0615b2fa5570a36b': Stop directly checking SuggestedWordInfo.mKind
Diffstat (limited to 'java/src/com/android/inputmethod/latin/BinaryDictionary.java')
-rw-r--r--java/src/com/android/inputmethod/latin/BinaryDictionary.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/BinaryDictionary.java b/java/src/com/android/inputmethod/latin/BinaryDictionary.java
index fd34b98f4..23f8a249a 100644
--- a/java/src/com/android/inputmethod/latin/BinaryDictionary.java
+++ b/java/src/com/android/inputmethod/latin/BinaryDictionary.java
@@ -318,16 +318,16 @@ public final class BinaryDictionary extends Dictionary {
++len;
}
if (len > 0) {
- final int flags = mOutputTypes[j] & SuggestedWordInfo.KIND_MASK_FLAGS;
+ final int kindAndFlags = mOutputTypes[j];
if (blockOffensiveWords
- && 0 != (flags & SuggestedWordInfo.KIND_FLAG_POSSIBLY_OFFENSIVE)
- && 0 == (flags & SuggestedWordInfo.KIND_FLAG_EXACT_MATCH)) {
+ && 0 != (kindAndFlags & SuggestedWordInfo.KIND_FLAG_POSSIBLY_OFFENSIVE)
+ && 0 == (kindAndFlags & SuggestedWordInfo.KIND_FLAG_EXACT_MATCH)) {
// If we block potentially offensive words, and if the word is possibly
// offensive, then we don't output it unless it's also an exact match.
continue;
}
suggestions.add(new SuggestedWordInfo(new String(mOutputCodePoints, start, len),
- mOutputScores[j], mOutputTypes[j], this /* sourceDict */,
+ mOutputScores[j], kindAndFlags, this /* sourceDict */,
mSpaceIndices[j] /* indexOfTouchPointOfSecondWord */,
mOutputAutoCommitFirstWordConfidence[0]));
}