Merge "Fix a bug where the spellcheck is using the old non-binary contacts dictionary" into jb-dev

main
Tom Ouyang 2012-06-04 23:10:03 -07:00 committed by Android (Google) Code Review
commit 7f7739fee8
1 changed files with 5 additions and 1 deletions

View File

@ -154,7 +154,11 @@ public class AndroidSpellCheckerService extends SpellCheckerService
private void startUsingContactsDictionaryLocked() {
if (null == mContactsDictionary) {
mContactsDictionary = new SynchronouslyLoadedContactsDictionary(this);
if (LatinIME.USE_BINARY_CONTACTS_DICTIONARY) {
mContactsDictionary = new SynchronouslyLoadedContactsBinaryDictionary(this);
} else {
mContactsDictionary = new SynchronouslyLoadedContactsDictionary(this);
}
}
final Iterator<WeakReference<DictionaryCollection>> iterator =
mDictionaryCollectionsList.iterator();