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

Commit bdf11af5 authored by Joanne Chung's avatar Joanne Chung
Browse files

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
parent 8dd91118
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -302,6 +302,7 @@ public final class InlineSuggestionFactory {
            public void onContent(SurfaceControlViewHost.SurfacePackage surface)
                    throws RemoteException {
                callback.onContent(surface);
                surface.release();
            }

            @Override