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

Commit 2feffba7 authored by kaiyiz's avatar kaiyiz
Browse files

IME: Add one missing exception catch for startInputInnerLocked

The method startInputInnerLocked() could throw IllegalArgument
exception, and two callings are added try/catch protection,
but one missing.

Catch the IllegalArgumentException when invoke startInputInnerLocked().

CRs-Fixed: 563388

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


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


    InputBindResult startInputInnerLocked() {
    InputBindResult startInputInnerLocked() {