Merge "Fix PiP window on rotation" into rvc-dev am: 8e4db5802f

Change-Id: Ie6af91aa90a0b676f3641d2270fcba13dbbfc26c
This commit is contained in:
Hongwei Wang
2020-04-22 23:44:59 +00:00
committed by Automerger Merge Worker

View File

@@ -884,8 +884,8 @@ class WindowStateAnimator {
clipRect = mTmpClipRect;
}
if (mSurfaceResized && (mAttrType == TYPE_BASE_APPLICATION) &&
(task != null) && (task.getMainWindowSizeChangeTransaction() != null)) {
if (w.mInRelayout && (mAttrType == TYPE_BASE_APPLICATION) && (task != null)
&& (task.getMainWindowSizeChangeTransaction() != null)) {
mSurfaceController.deferTransactionUntil(mWin.getClientViewRootSurface(),
mWin.getFrameNumber());
SurfaceControl.mergeToGlobalTransaction(task.getMainWindowSizeChangeTransaction());