Commits

Robert Carr authored 603248d909e
Update surface size even when preserving geometry. A recent change is causing some apps to request their SurfaceView size before requesting visibility. We won't apply this because of the View.GONE check in WMS. Once the app becomes visible, it thinks the surface size hasn't changed locally, so it appends PRESERVE_GEOMETRY to let the render thread and reposition child control the layout size. Now we will never set a requested width/height though and end up with 0. The line to not update requested size while preferring geometry was required when we were using SCALING_MODE_NO_SCALE_CROP, as making the size smaller would apply immediately (with the surface size acting as a reduced crop until we got a new buffer), but now that we are using SCALING_MODE_FREEZE there are no problems. Bug: 27914300 Change-Id: Ic0997ab3950f3eac360260e9939b6f2ee6667453