Collect change before starting transition

With shell transition enabled, the previous implemented freeform and
fullscreen change transition doesn't actually work. It is necessary to
start collecting, making the server side change, before actually request
starting the transition. Otherwise, the change cannot be calculated
correctly with the necessary information.

Bug: 279803578
Test: FreeformWindowingModeTests
Change-Id: I9c25a6c30e1f5d39288d8ece4f0ca4982551d26a
This commit is contained in:
Yunfan Chen
2023-05-02 17:19:18 +08:00
parent 99a5d2d1cd
commit 85f765908c

View File

@@ -1162,9 +1162,10 @@ class ActivityClientController extends IActivityClientController.Stub {
}
return;
}
transition.collect(topFocusedRootTask);
executeMultiWindowFullscreenRequest(fullscreenRequest, topFocusedRootTask);
r.mTransitionController.requestStartTransition(transition, topFocusedRootTask,
null /* remoteTransition */, null /* displayChange */);
executeMultiWindowFullscreenRequest(fullscreenRequest, topFocusedRootTask);
transition.setReady(topFocusedRootTask, true);
}