Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit faf0059f authored by Tom Ouyang's avatar Tom Ouyang
Browse files

Fix a bug where the spellcheck is using the old non-binary contacts dictionary

Bug: 6607023
Change-Id: I6dc120dea23052a0841e281c20706bfb21fd9876
parent fe824948
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -152,8 +152,12 @@ public class AndroidSpellCheckerService extends SpellCheckerService

    private void startUsingContactsDictionaryLocked() {
        if (null == mContactsDictionary) {
            if (LatinIME.USE_BINARY_CONTACTS_DICTIONARY) {
                mContactsDictionary = new SynchronouslyLoadedContactsBinaryDictionary(this);
            } else {
                mContactsDictionary = new SynchronouslyLoadedContactsDictionary(this);
            }
        }
        final Iterator<WeakReference<DictionaryCollection>> iterator =
                mDictionaryCollectionsList.iterator();
        while (iterator.hasNext()) {