Merge "SurfaceView: Show SurfacePackage child when reparenting"

This commit is contained in:
TreeHugger Robot
2020-02-06 20:34:09 +00:00
committed by Android (Google) Code Review

View File

@@ -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);
}
/**