Fix: NPE in LatinIME.loadSettnigs().
Change-Id: Icae6c74401a7a8f4da6015737f09f557640c0cca
This commit is contained in:
parent
385031557b
commit
b3c51630a6
1 changed files with 4 additions and 2 deletions
|
@ -524,8 +524,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
|||
}
|
||||
if (currentSettingsValues.mUsePersonalizedDicts) {
|
||||
if (mSubtypeSwitcher.isSystemLocaleSameAsLocaleOfAllEnabledSubtypes()) {
|
||||
PersonalizationDictionarySessionRegistrar.init(this,
|
||||
mInputLogic.mSuggest.mDictionaryFacilitator);
|
||||
final DictionaryFacilitatorForSuggest dictionaryFacilitator =
|
||||
(mInputLogic.mSuggest == null) ?
|
||||
null : mInputLogic.mSuggest.mDictionaryFacilitator;
|
||||
PersonalizationDictionarySessionRegistrar.init(this, dictionaryFacilitator);
|
||||
} else {
|
||||
PersonalizationDictionarySessionRegistrar.close(this);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue