Ignore scheduleFinishResizePip if there is no surface to operate on.

Unable to repro, but based on the stack trace it happens here.
Adding proto logs to use when we collect repro steps from users.

Bug: 242939615
Test: n/a, unable to repro

Change-Id: I0d6761e26eb2bfadcd673bb3777812340aa060ae
This commit is contained in:
Mateusz Cicheński
2022-09-02 01:23:52 +00:00
parent 9fc9ab3d93
commit 3e6c3a9914

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) {