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

Commit 20c62d2d authored by Robert Carr's avatar Robert Carr
Browse files

SurfaceView: Show SurfacePackage child when reparenting

Since we aren't exposing the SurfaceControl in the public API
we need to show it for the user.

Bug: 134365580
Bug: 147303389
Test: SurfaceControlViewHostTests
Change-Id: Icec1384aeb50eef0261f3591a250f02f47737f66
parent f11362df
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1570,7 +1570,8 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
    private void reparentSurfacePackage(SurfaceControl.Transaction t,
            SurfaceControlViewHost.SurfacePackage p) {
        // TODO: Link accessibility IDs here.
        t.reparent(p.getSurfaceControl(), mSurfaceControl);
        final SurfaceControl sc = p.getSurfaceControl();
        t.reparent(sc, mSurfaceControl).show(sc);
    }

    /**