Skip to content
Snippets Groups Projects
Commit dc5a7c2b authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix cold-lauch Activity Embeded apps flash black." into main am: b0f339a6 am: c8efeb58

parents 74ae9713 c8efeb58
No related branches found
No related tags found
No related merge requests found
......@@ -2254,6 +2254,11 @@ class WindowOrganizerController extends IWindowOrganizerController.Stub
ownerTask.addChild(taskFragment, position);
taskFragment.setWindowingMode(creationParams.getWindowingMode());
if (!creationParams.getInitialRelativeBounds().isEmpty()) {
// The surface operations for the task fragment should sync with the transition.
// This avoid using pending transaction before collectExistenceChange is called.
if (transition != null) {
addToSyncSet(transition.getSyncId(), taskFragment);
}
// Set relative bounds instead of using setBounds. This will avoid unnecessary update in
// case the parent has resized since the last time parent info is sent to the organizer.
taskFragment.setRelativeEmbeddedBounds(creationParams.getInitialRelativeBounds());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment