Merge "Fix incorrect matching of last character to unexpected names in contact dictionary."

main
Amith Yamasani 2010-03-04 03:43:43 -08:00 committed by Android (Google) Code Review
commit ec99869272
1 changed files with 1 additions and 1 deletions

View File

@ -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())) {