diff options
author | 2012-06-05 09:54:55 -0700 | |
---|---|---|
committer | 2012-06-05 09:54:55 -0700 | |
commit | f93551f77b459f50329bd4008f2f70e7e67c3787 (patch) | |
tree | e3e60d0e2fb88e1473661f5722d8db55015d303a /java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java | |
parent | 037cf8c8a52ed925ea9bb0b4ea0dcdcf52145ad8 (diff) | |
parent | 18c4137c878c18de24a406b861ddb2a735e02f7d (diff) | |
download | latinime-f93551f77b459f50329bd4008f2f70e7e67c3787.tar.gz latinime-f93551f77b459f50329bd4008f2f70e7e67c3787.tar.xz latinime-f93551f77b459f50329bd4008f2f70e7e67c3787.zip |
am 18c4137c: am 7f7739fe: Merge "Fix a bug where the spellcheck is using the old non-binary contacts dictionary" into jb-dev
* commit '18c4137c878c18de24a406b861ddb2a735e02f7d':
Fix a bug where the spellcheck is using the old non-binary contacts dictionary
Diffstat (limited to 'java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java b/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java index ede788d6e..58e4d203c 100644 --- a/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java +++ b/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java @@ -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(); |