Merge "don't call setSize() when creating SurfaceControl"

This commit is contained in:
Treehugger Robot
2018-07-25 02:31:13 +00:00
committed by Gerrit Code Review

View File

@@ -572,7 +572,7 @@ public class SurfaceView extends View implements ViewRootImpl.WindowStoppedCallb
0.0f, 0.0f, 0.0f, 0.0f,
mScreenRect.height() / (float) mSurfaceHeight); mScreenRect.height() / (float) mSurfaceHeight);
} }
if (sizeChanged) { if (sizeChanged && !creating) {
mSurfaceControl.setSize(mSurfaceWidth, mSurfaceHeight); mSurfaceControl.setSize(mSurfaceWidth, mSurfaceHeight);
} }
} finally { } finally {