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:
@@ -302,6 +302,7 @@ public final class InlineSuggestionFactory {
|
||||
public void onContent(SurfaceControlViewHost.SurfacePackage surface)
|
||||
throws RemoteException {
|
||||
callback.onContent(surface);
|
||||
surface.release();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user