diff options
| author | Amith Yamasani <yamasani@google.com> | 2010-03-04 03:22:08 -0800 |
|---|---|---|
| committer | Amith Yamasani <yamasani@google.com> | 2010-03-04 03:22:08 -0800 |
| commit | 787a654fd73eb4c223e135c8734667fbbb0bbc0d (patch) | |
| tree | 276db611202d3a7d82d12d2e168be475f969dfa2 | |
| parent | 6aaafeed9682863157deb0506ee36a5177bbcd68 (diff) | |
| download | android_packages_inputmethods_LatinIME-787a654fd73eb4c223e135c8734667fbbb0bbc0d.tar.gz android_packages_inputmethods_LatinIME-787a654fd73eb4c223e135c8734667fbbb0bbc0d.tar.bz2 android_packages_inputmethods_LatinIME-787a654fd73eb4c223e135c8734667fbbb0bbc0d.zip | |
Fix incorrect matching of last character to unexpected names in contact
dictionary.
Example, "ho9" would match "Shoemaker", if "Shoemaker" existed in your
contacts. This was due to premature switch to completions mode when
trying to insert a missing letter.
This syncs up the Java version to what the native one was doing.
| -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())) { |
