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

Commit c593380d authored by satok's avatar satok
Browse files

Fix crash in setAdditionalInputMethodSubtypes

Bug: 5142455
Change-Id: I5eca4c1a3d9a964db04c819fc671670ef1b81817
parent 6b14b23a
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -1682,7 +1682,12 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
                for (int i = 0; i < packageNum; ++i) {
                    if (packageInfos[i].equals(imi.getPackageName())) {
                        mFileManager.addInputMethodSubtypes(imi, subtypes);
                        final long ident = Binder.clearCallingIdentity();
                        try {
                            buildInputMethodListLocked(mMethodList, mMethodMap);
                        } finally {
                            Binder.restoreCallingIdentity(ident);
                        }
                        return true;
                    }
                }
@@ -1707,7 +1712,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
                return;
            }

            long ident = Binder.clearCallingIdentity();
            final long ident = Binder.clearCallingIdentity();
            try {
                setInputMethodLocked(id, subtypeId);
            } finally {