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

Commit 97106ab5 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Fix issue #2325621 Runtime restart after launching Android keyboard setting .

parent ddb42a42
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -1475,13 +1475,22 @@ public class InputMethodManagerService extends IInputMethodManager.Stub

        final List<InputMethodInfo> immis = getEnabledInputMethodList();

        int N = (immis == null ? 0 : immis.size());
        if (immis == null) {
            return;
        }
        
        int N = immis.size();

        mItems = new CharSequence[N];
        mIms = new InputMethodInfo[N];

        for (int i = 0; i < N; ++i) {
            InputMethodInfo property = immis.get(i);
            if (property == null) {
                i--;
                N--;
                continue;
            }
            mItems[i] = property.loadLabel(pm);
            mIms[i] = property;
        }