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 (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 New Issue