Forward setVisibility call to SurfaceView for ActivityView.
SurfaceView setVisibility handles removing the surface already. By forwarding the visiblity call from AV to the SV, SV will destroy the surface. It will callback into AV through SurfaceCallback.surfaceDestroyed. In the callback, AV removes the surface for the display, causing the virtual display to turn off. When the virtual display is turned off, the activities on that display will get stopped. Test: ActivityViewVisibilityActivity Change-Id: Iea8b57d7871b8c87457f2ae19485a610d0d74c38
Loading
Please register or sign in to comment