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

Commit fa440185 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Make sure to call SomeArgs#recycle() in IMMS#handleMessage" into rvc-dev

parents 71c1cb3e 6e9768e9
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -4262,7 +4262,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
            }

            // ---------------------------------------------------------------
            case MSG_INLINE_SUGGESTIONS_REQUEST:
            case MSG_INLINE_SUGGESTIONS_REQUEST: {
                args = (SomeArgs) msg.obj;
                final InlineSuggestionsRequestInfo requestInfo =
                        (InlineSuggestionsRequestInfo) args.arg2;
@@ -4274,8 +4274,10 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
                } catch (RemoteException e) {
                    Slog.w(TAG, "RemoteException calling onCreateInlineSuggestionsRequest(): " + e);
                }
                args.recycle();
                return true;
            }
        }
        return false;
    }