From faf0059f35301bede63619d1f6e7b2c3a7fea97b Mon Sep 17 00:00:00 2001 From: Tom Ouyang Date: Mon, 4 Jun 2012 12:40:07 -0700 Subject: [PATCH] Fix a bug where the spellcheck is using the old non-binary contacts dictionary Bug: 6607023 Change-Id: I6dc120dea23052a0841e281c20706bfb21fd9876 --- .../latin/spellcheck/AndroidSpellCheckerService.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java b/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java index 0e3bf8011..2bc8311b3 100644 --- a/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java +++ b/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java @@ -152,7 +152,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> iterator = mDictionaryCollectionsList.iterator();