Fix IInlineSuggestionUiCallback not released.

In our case, PARCELABLE_WRITE_RETURN_VALUE flag isn't present in
writeToParcel, the SurfaceControl.release() will not be called. We
should call SurfacePackage.release() after writeToParcel.

Bug: 149591513
Test: atest and then does not see the log.
Change-Id: Ia11f70b983acee51a9e9c85f3ff966a8404f93e8
This commit is contained in:
Joanne Chung
2020-03-23 13:01:03 +08:00
parent 8dd9111809
commit bdf11af500

View File

@@ -302,6 +302,7 @@ public final class InlineSuggestionFactory {
public void onContent(SurfaceControlViewHost.SurfacePackage surface)
throws RemoteException {
callback.onContent(surface);
surface.release();
}
@Override