diff options
author | 2010-03-04 03:43:43 -0800 | |
---|---|---|
committer | 2010-03-04 03:43:43 -0800 | |
commit | ec99869272d6d96e5823eaf391c7270caf90f891 (patch) | |
tree | 77f7ea0f7dbd9cec1ac425c8958d66bdc474d8d8 | |
parent | 12caec4dd59270787a5ddafdbf39290bc90929b3 (diff) | |
parent | 787a654fd73eb4c223e135c8734667fbbb0bbc0d (diff) | |
download | latinime-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.java | 2 |
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())) { |