diff options
author | 2012-08-10 01:30:01 -0700 | |
---|---|---|
committer | 2012-08-10 01:30:01 -0700 | |
commit | fdbc75e5d439bacb20a0136bf88b9a2b7202f5e6 (patch) | |
tree | 5f7b6b4e4abeb4dcac49e2551b0739765bc9a302 /java/src/com | |
parent | b2bcac76e9a42ee3153169bf37a06a20df906f35 (diff) | |
parent | 1599feda42e0f0881368b948222a0667a09de728 (diff) | |
download | latinime-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.java | 5 |
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; |