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 (currentSettingsValues.mUsePersonalizedDicts) {
|
||||||
if (mSubtypeSwitcher.isSystemLocaleSameAsLocaleOfAllEnabledSubtypes()) {
|
if (mSubtypeSwitcher.isSystemLocaleSameAsLocaleOfAllEnabledSubtypes()) {
|
||||||
PersonalizationDictionarySessionRegistrar.init(this,
|
final DictionaryFacilitatorForSuggest dictionaryFacilitator =
|
||||||
mInputLogic.mSuggest.mDictionaryFacilitator);
|
(mInputLogic.mSuggest == null) ?
|
||||||
|
null : mInputLogic.mSuggest.mDictionaryFacilitator;
|
||||||
|
PersonalizationDictionarySessionRegistrar.init(this, dictionaryFacilitator);
|
||||||
} else {
|
} else {
|
||||||
PersonalizationDictionarySessionRegistrar.close(this);
|
PersonalizationDictionarySessionRegistrar.close(this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue