Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74bcc911 authored by Jean Chalard's avatar Jean Chalard
Browse files

Fix a problem where settings were not renewed correctly.

Bug: 10065412
Change-Id: Id05284f45466cd5b2697a695c3d1bdfbf3cc1f24
parent 9118467b
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -714,7 +714,9 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
        super.onStartInputView(editorInfo, restarting);
        final KeyboardSwitcher switcher = mKeyboardSwitcher;
        final MainKeyboardView mainKeyboardView = switcher.getMainKeyboardView();
        final SettingsValues currentSettingsValues = mSettings.getCurrent();
        // If we are starting input in a different text field from before, we'll have to reload
        // settings, so currentSettingsValues can't be final.
        SettingsValues currentSettingsValues = mSettings.getCurrent();

        if (editorInfo == null) {
            Log.e(TAG, "Null EditorInfo in onStartInputView()");
@@ -808,7 +810,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
        if (isDifferentTextField) {
            mainKeyboardView.closing();
            loadSettings();
            // TODO: Need to update currentSettingsValues after loadSettings()
            currentSettingsValues = mSettings.getCurrent();

            if (mSuggest != null && currentSettingsValues.mCorrectionEnabled) {
                mSuggest.setAutoCorrectionThreshold(currentSettingsValues.mAutoCorrectionThreshold);
            }