Merge "Make sure to call SomeArgs#recycle() in IMMS#handleMessage" into rvc-dev am: fa440185f8 am: 835269e712

Change-Id: Ib455c830c2bfb12e9114e30eae38344fc8d7d05c
This commit is contained in:
TreeHugger Robot
2020-05-15 17:56:35 +00:00
committed by Automerger Merge Worker

View File

@@ -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,7 +4274,9 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
} catch (RemoteException e) {
Slog.w(TAG, "RemoteException calling onCreateInlineSuggestionsRequest(): " + e);
}
args.recycle();
return true;
}
}
return false;
}