Merge "don't call setSize() when creating SurfaceControl" am: 57e98b19be

am: e332fe4b3d

Change-Id: I384dd4a03db135c703e3672037212a970d222689
This commit is contained in:
youngmin0822.lee
2018-07-24 22:14:56 -07:00
committed by android-build-merger

View File

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