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

This commit is contained in:
Tom Ouyang 2012-06-04 23:10:03 -07:00 committed by Android (Google) Code Review
commit 7f7739fee8

View File

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