am a5202c71
: Merge "Use different contacts dict name for spell checker."
* commit 'a5202c7143b8f578e51e296af908599098532118': Use different contacts dict name for spell checker.
This commit is contained in:
commit
0a60301364
2 changed files with 8 additions and 2 deletions
|
@ -77,7 +77,12 @@ public class ContactsBinaryDictionary extends ExpandableBinaryDictionary {
|
|||
|
||||
public ContactsBinaryDictionary(final Context context, final Locale locale,
|
||||
final File dictFile) {
|
||||
super(context, getDictName(NAME, locale, dictFile), locale, Dictionary.TYPE_CONTACTS,
|
||||
this(context, locale, dictFile, NAME);
|
||||
}
|
||||
|
||||
protected ContactsBinaryDictionary(final Context context, final Locale locale,
|
||||
final File dictFile, final String name) {
|
||||
super(context, getDictName(name, locale, dictFile), locale, Dictionary.TYPE_CONTACTS,
|
||||
dictFile);
|
||||
mLocale = locale;
|
||||
mUseFirstLastBigrams = useFirstLastBigramsForLocale(locale);
|
||||
|
|
|
@ -27,10 +27,11 @@ import java.util.ArrayList;
|
|||
import java.util.Locale;
|
||||
|
||||
public final class SynchronouslyLoadedContactsBinaryDictionary extends ContactsBinaryDictionary {
|
||||
private static final String NAME = "spellcheck_contacts";
|
||||
private final Object mLock = new Object();
|
||||
|
||||
public SynchronouslyLoadedContactsBinaryDictionary(final Context context, final Locale locale) {
|
||||
super(context, locale);
|
||||
super(context, locale, null /* dictFile */, NAME);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue