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

Commit aa4fa0ea authored by Satoshi Kataoka's avatar Satoshi Kataoka
Browse files

Fix a bug on updating enabled IMEs

Bug: 11354619
Change-Id: Ie33630b3dc150536bc0325ad6116ea5fdcf60740
parent 1630ef4f
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -292,10 +292,6 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment
        // Refresh internal states in mInputMethodSettingValues to keep the latest
        // "InputMethodInfo"s and "InputMethodSubtype"s
        mInputMethodSettingValues.refreshAllInputMethodAndSubtypes();
        // TODO: Consolidate the logic to InputMethodSettingsWrapper
        InputMethodAndSubtypeUtil.loadInputMethodSubtypeList(
                this, getContentResolver(),
                mInputMethodSettingValues.getInputMethodList(), null);
        updateInputMethodPreferenceViews();
    }

@@ -437,6 +433,13 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment
            }
        }
        updateCurrentImeName();
        // TODO: Consolidate the logic with InputMethodSettingsWrapper
        // CAVEAT: The preference class here does not know about the default value - that is
        // managed by the Input Method Manager Service, so in this case it could save the wrong
        // value. Hence we must update the checkboxes here.
        InputMethodAndSubtypeUtil.loadInputMethodSubtypeList(
                this, getContentResolver(),
                mInputMethodSettingValues.getInputMethodList(), null);
    }

    private void updateCurrentImeName() {