Merge "SurfaceView: Synchronize visibility changes with VRI frame" into sc-v2-dev

This commit is contained in:
Vishnu Nair
2022-01-11 16:51:28 +00:00
committed by Android (Google) Code Review

View File

@@ -966,9 +966,9 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
mParentSurfaceSequenceId = viewRoot.getSurfaceSequenceId();
if (mViewVisibility) {
mTmpTransaction.show(mSurfaceControl);
geometryTransaction.show(mSurfaceControl);
} else {
mTmpTransaction.hide(mSurfaceControl);
geometryTransaction.hide(mSurfaceControl);
}
if (mSurfacePackage != null) {