Merge "Ignore scheduleFinishResizePip if there is no surface to operate on." into tm-qpr-dev

This commit is contained in:
Mateusz Cicheński
2022-09-06 23:24:03 +00:00
committed by Android (Google) Code Review

View File

@@ -1306,6 +1306,12 @@ public class PipTaskOrganizer implements ShellTaskOrganizer.TaskListener,
return;
}
if (mLeash == null || !mLeash.isValid()) {
Log.e(TAG, String.format("scheduleFinishResizePip with null leash! mState=%d",
mPipTransitionState.getTransitionState()));
return;
}
finishResize(createFinishResizeSurfaceTransaction(destinationBounds), destinationBounds,
direction, -1);
if (updateBoundsCallback != null) {