Add shadow during startTransition

Add the shadow to the startTransition in WindowDecoration#relayout.

Test: Transition to freeform and assure shadow is there
Bug: 280824252
Change-Id: I5d037622243c9a14d81e9a00a2e14797b464cf71
This commit is contained in:
Maryam Dehaini
2023-06-08 13:47:37 -07:00
parent 53a00167ec
commit b45f925deb

View File

@@ -267,6 +267,7 @@ public abstract class WindowDecoration<T extends View & TaskFocusStateConsumer>
.setColor(mTaskSurface, mTmpColor)
.show(mTaskSurface);
finishT.setPosition(mTaskSurface, taskPosition.x, taskPosition.y)
.setShadowRadius(mTaskSurface, shadowRadius)
.setWindowCrop(mTaskSurface, outResult.mWidth, outResult.mHeight);
if (mTaskInfo.getWindowingMode() == WINDOWING_MODE_FREEFORM) {
startT.setCornerRadius(mTaskSurface, params.mCornerRadius);