Merge "Limit creating new surface for legacy apps to size changes." into oc-dev am: d523125679

am: 80e1d8eb9a

Change-Id: If075db13918bc53ac4f51c3159b16582b0740fbe
This commit is contained in:
Bryce Lee
2017-06-20 22:33:19 +00:00
committed by android-build-merger

View File

@@ -641,7 +641,7 @@ public class SurfaceView extends View implements ViewRootImpl.WindowStoppedCallb
mSurface.copyFrom(mSurfaceControl);
}
if (getContext().getApplicationInfo().targetSdkVersion
if (sizeChanged && getContext().getApplicationInfo().targetSdkVersion
< Build.VERSION_CODES.O) {
// Some legacy applications use the underlying native {@link Surface} object
// as a key to whether anything has changed. In these cases, updates to the