mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix: NPE in LatinIME.loadSettnigs().
Change-Id: Icae6c74401a7a8f4da6015737f09f557640c0cca
This commit is contained in:
parent
385031557b
commit
b3c51630a6
@ -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
Block a user