aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-08-10 01:30:01 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-08-10 01:30:01 -0700
commitfdbc75e5d439bacb20a0136bf88b9a2b7202f5e6 (patch)
tree5f7b6b4e4abeb4dcac49e2551b0739765bc9a302 /java/src/com
parentb2bcac76e9a42ee3153169bf37a06a20df906f35 (diff)
parent1599feda42e0f0881368b948222a0667a09de728 (diff)
downloadlatinime-fdbc75e5d439bacb20a0136bf88b9a2b7202f5e6.tar.gz
latinime-fdbc75e5d439bacb20a0136bf88b9a2b7202f5e6.tar.xz
latinime-fdbc75e5d439bacb20a0136bf88b9a2b7202f5e6.zip
am 1599feda: am dc2fb6bc: Merge "Pass the type from native code all the way to Java." into jb-mr1-dev
* commit '1599feda42e0f0881368b948222a0667a09de728': Pass the type from native code all the way to Java.
Diffstat (limited to 'java/src/com')
-rw-r--r--java/src/com/android/inputmethod/latin/BinaryDictionary.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/BinaryDictionary.java b/java/src/com/android/inputmethod/latin/BinaryDictionary.java
index 7ba565c31..096764499 100644
--- a/java/src/com/android/inputmethod/latin/BinaryDictionary.java
+++ b/java/src/com/android/inputmethod/latin/BinaryDictionary.java
@@ -144,9 +144,10 @@ public class BinaryDictionary extends Dictionary {
++len;
}
if (len > 0) {
+ final int score = SuggestedWordInfo.KIND_WHITELIST == mOutputTypes[j]
+ ? SuggestedWordInfo.MAX_SCORE : mOutputScores[j];
suggestions.add(new SuggestedWordInfo(
- new String(mOutputChars, start, len),
- mOutputScores[j], SuggestedWordInfo.KIND_CORRECTION, mDictType));
+ new String(mOutputChars, start, len), score, mOutputTypes[j], mDictType));
}
}
return suggestions;