Fix PiP window on rotation

Per suggestion, check WindowState.mInRelayout instead of mSurfaceResized
when trying to apply the companion SurfaceControl.Transaction of
WindowContainerTransaction.

mSurfaceResized is false when the client calls to relayout and client
renderer is paused, which can be triggered from home screen rotation for
PiP window.

Bug: 154236022
Test: manually rotate with PiP on screen
Change-Id: Ibbe1632de054a8f99c006050701d3472ddc3bbd9
1 file changed