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

Commit 558d5bd0 authored by Winson Chung's avatar Winson Chung Committed by Automerger Merge Worker
Browse files

Merge "Preemptively reset split reparenting flag when entering split" into...

Merge "Preemptively reset split reparenting flag when entering split" into udc-qpr-dev am: e77f5fa0

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/24812535



Change-Id: Ie187c4f4aabda3ec21799e8b5c381e9d0775a8ba
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 1de863a4 e77f5fa0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1551,6 +1551,11 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,
            @Nullable ActivityManager.RunningTaskInfo taskInfo, @SplitPosition int startPosition,
            boolean resizeAnim) {
        onSplitScreenEnter();
        // Preemptively reset the reparenting behavior if we know that we are entering, as starting
        // split tasks with activity trampolines can inadvertently trigger the task to be
        // reparented out of the split root mid-launch
        wct.setReparentLeafTaskIfRelaunch(mRootTaskInfo.token,
                false /* setReparentLeafTaskIfRelaunch */);
        if (isSplitActive()) {
            prepareBringSplit(wct, taskInfo, startPosition, resizeAnim);
        } else {