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

Commit 50052930 authored by Taran Singh's avatar Taran Singh Committed by Android (Google) Code Review
Browse files

Merge "ZeroJankProxy: Synchronize startInputResult" into main

parents 6b18bc60 57f5ea9e
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -441,6 +441,7 @@ public class ZeroJankProxy extends IInputMethodManager.Stub {

    private void sendOnStartInputResult(
            IInputMethodClient client, InputBindResult res, int startInputSeq) {
        synchronized (ImfLock.class) {
            InputMethodManagerService service = (InputMethodManagerService) mInner;
            final ClientState cs = service.getClientState(client);
            if (cs != null && cs.mClient != null) {
@@ -448,7 +449,9 @@ public class ZeroJankProxy extends IInputMethodManager.Stub {
            } else {
                // client is unbound.
                Slog.i(TAG, "Client that requested startInputOrWindowGainedFocus is no longer"
                    + " bound. InputBindResult: " + res + " for startInputSeq: " + startInputSeq);
                        + " bound. InputBindResult: " + res + " for startInputSeq: "
                        + startInputSeq);
            }
        }
    }
}