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

Commit bb7964d6 authored by Robert Carr's avatar Robert Carr
Browse files

SurfaceControlViewHost: Call die instead of dispatchDetached

Seems more appropriate as this more mirrors the normal release path.
I think everything gets release eventually either way.

Bug: 149591513
Test: Existing tests pass
Change-Id: I6f21d2723e06dbae4e09421efc352c179115bc40
parent 5af7d62e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -233,7 +233,7 @@ public class SurfaceControlViewHost {
     * and render the object unusable.
     */
    public void release() {
        mViewRoot.dispatchDetachedFromWindow();
        mViewRoot.die(false /* immediate */);
        mSurfaceControl.release();
    }