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

Commit eec941af authored by kaiyiz's avatar kaiyiz Committed by Linux Build Service Account
Browse files

IME: Fix Happened IllegalArgumentException 315 times during monkey test

The method startInputInnerLocked() sometimes throw IllegalArgument
Exception. There are 3 places invoked this method, but one of them
forgot to catch this exception.

Catch the IllegalArgumentException when invoke startInputInnerLocked().

CRs-Fixed: 563388

Change-Id: I315cb46b1d16c2862989cb9c0c10ed6613884522
parent a3ff0061
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1243,7 +1243,12 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
            }
        }

        try {
            return startInputInnerLocked();
        } catch (RuntimeException e) {
            Slog.w(TAG, "Unexpected exception", e);
            return null;
        }
    }

    InputBindResult startInputInnerLocked() {