Preparation for a simplification (A19)

Change-Id: I4605a571faf5fbc68b18ce525d6019600bfa8cf7
main
Jean Chalard 2012-06-26 16:59:09 +09:00
parent 0a79446531
commit 77e95e60bb
1 changed files with 4 additions and 0 deletions

View File

@ -115,6 +115,8 @@ public class Suggest {
private void initWhitelistAndAutocorrectAndPool(final Context context, final Locale locale) {
mWhiteListDictionary = new WhitelistDictionary(context, locale);
addOrReplaceDictionary(mUnigramDictionaries, DICT_KEY_WHITELIST, mWhiteListDictionary);
// The whitelist dictionary never returns any bigrams, so it's safe to add it here
addOrReplaceDictionary(mBigramDictionaries, DICT_KEY_WHITELIST, mWhiteListDictionary);
}
private void initAsynchronously(final Context context, final Locale locale) {
@ -178,6 +180,8 @@ public class Suggest {
*/
public void setUserDictionary(UserBinaryDictionary userDictionary) {
addOrReplaceDictionary(mUnigramDictionaries, DICT_KEY_USER, userDictionary);
// The user dictionary never returns any bigrams, so it's safe to add it
addOrReplaceDictionary(mBigramDictionaries, DICT_KEY_USER, userDictionary);
}
/**