aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2010-03-04 03:43:43 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-03-04 03:43:43 -0800
commitec99869272d6d96e5823eaf391c7270caf90f891 (patch)
tree77f7ea0f7dbd9cec1ac425c8958d66bdc474d8d8
parent12caec4dd59270787a5ddafdbf39290bc90929b3 (diff)
parent787a654fd73eb4c223e135c8734667fbbb0bbc0d (diff)
downloadlatinime-ec99869272d6d96e5823eaf391c7270caf90f891.tar.gz
latinime-ec99869272d6d96e5823eaf391c7270caf90f891.tar.xz
latinime-ec99869272d6d96e5823eaf391c7270caf90f891.zip
Merge "Fix incorrect matching of last character to unexpected names in contact dictionary."
-rw-r--r--src/com/android/inputmethod/latin/ExpandableDictionary.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/inputmethod/latin/ExpandableDictionary.java b/src/com/android/inputmethod/latin/ExpandableDictionary.java
index 648f577ca..006593700 100644
--- a/src/com/android/inputmethod/latin/ExpandableDictionary.java
+++ b/src/com/android/inputmethod/latin/ExpandableDictionary.java
@@ -248,7 +248,7 @@ public class ExpandableDictionary extends Dictionary {
if (currentChar == lowerC || currentChar == c) {
word[depth] = c;
- if (codeSize == depth + 1) {
+ if (codeSize == inputIndex + 1) {
if (terminal) {
if (INCLUDE_TYPED_WORD_IF_VALID
|| !same(word, depth + 1, codes.getTypedWord())) {