am b3c51630: Fix: NPE in LatinIME.loadSettnigs().
* commit 'b3c51630a6b8dc09c161c7720db7bae21b0cf27e': Fix: NPE in LatinIME.loadSettnigs().main
commit
c382d0f114
|
@ -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 New Issue