mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-08 07:37:41 +00:00
fix potential issue with not set autocorrect threshold
and an unintentionally changed default
This commit is contained in:
parent
201b430362
commit
fe59a598b7
4 changed files with 7 additions and 14 deletions
|
@ -691,9 +691,7 @@ public class LatinIME extends InputMethodService implements
|
|||
mDictionaryFacilitator.resetDictionaries(this, locale,
|
||||
settingsValues.mUseContactsDictionary, settingsValues.mUsePersonalizedDicts,
|
||||
false, settingsValues.mAccount, "", this);
|
||||
if (settingsValues.mAutoCorrectEnabled) {
|
||||
mInputLogic.mSuggest.setAutoCorrectionThreshold(settingsValues.mAutoCorrectionThreshold);
|
||||
}
|
||||
mInputLogic.mSuggest.setAutoCorrectionThreshold(settingsValues.mAutoCorrectionThreshold);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1017,9 +1015,7 @@ public class LatinIME extends InputMethodService implements
|
|||
|
||||
if (isDifferentTextField) {
|
||||
mainKeyboardView.closing();
|
||||
if (currentSettingsValues.mAutoCorrectEnabled) {
|
||||
suggest.setAutoCorrectionThreshold(currentSettingsValues.mAutoCorrectionThreshold);
|
||||
}
|
||||
suggest.setAutoCorrectionThreshold(currentSettingsValues.mAutoCorrectionThreshold);
|
||||
switcher.loadKeyboard(editorInfo, currentSettingsValues, getCurrentAutoCapsState(), getCurrentRecapitalizeState());
|
||||
if (needToCallLoadKeyboardLater) {
|
||||
// If we need to call loadKeyboard again later, we need to save its state now. The
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue