Fix a bug where the spellcheck is using the old non-binary contacts dictionary
Bug: 6607023 Change-Id: I6dc120dea23052a0841e281c20706bfb21fd9876main
parent
fe824948bb
commit
faf0059f35
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue