Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 002dd68f authored by Wei Sheng Shih's avatar Wei Sheng Shih Committed by Android (Google) Code Review
Browse files

Merge "Always choose starting window's sync transaction to reparent." into main

parents 472667ae 49a9b027
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -2925,14 +2925,10 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
    /** Makes starting window always fill the associated task. */
    private void attachStartingSurfaceToAssociatedTask() {
        if (mSyncState == SYNC_STATE_NONE && isEmbedded()) {
            // Collect this activity since it's starting window will reparent to task. To ensure
            // any starting window's transaction will occur in order.
            mTransitionController.collect(this);
        }
        mTransitionController.collect(mStartingWindow);
        // Associate the configuration of starting window with the task.
        overrideConfigurationPropagation(mStartingWindow, mStartingData.mAssociatedTask);
        getSyncTransaction().reparent(mStartingWindow.mSurfaceControl,
        mStartingWindow.getSyncTransaction().reparent(mStartingWindow.mSurfaceControl,
                mStartingData.mAssociatedTask.mSurfaceControl);
    }