diff options
author | 2012-06-04 23:13:37 -0700 | |
---|---|---|
committer | 2012-06-04 23:13:37 -0700 | |
commit | 18c4137c878c18de24a406b861ddb2a735e02f7d (patch) | |
tree | e5e71ac9a347d4362e355ed0144926407e7cff9d /java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java | |
parent | 7394fc43028ef6e28579921c30915bd8a9c9c990 (diff) | |
parent | 7f7739fee82d6f2c240d0ed44e8948d09158f13a (diff) | |
download | latinime-18c4137c878c18de24a406b861ddb2a735e02f7d.tar.gz latinime-18c4137c878c18de24a406b861ddb2a735e02f7d.tar.xz latinime-18c4137c878c18de24a406b861ddb2a735e02f7d.zip |
am 7f7739fe: Merge "Fix a bug where the spellcheck is using the old non-binary contacts dictionary" into jb-dev
* commit '7f7739fee82d6f2c240d0ed44e8948d09158f13a':
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(); |