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

Commit 209188fc authored by Hongwei Wang's avatar Hongwei Wang Committed by Automerger Merge Worker
Browse files

Merge "Completely remove pinned task when starting a new PiP" into tm-dev am:...

Merge "Completely remove pinned task when starting a new PiP" into tm-dev am: bfbf74ae am: 420f7e1d am: 0d6a4a13

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



Change-Id: I5504fe6a0f7a6b687d6806fccf9b6f9af12e9411
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 000dacbf 0d6a4a13
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2004,7 +2004,10 @@ class RootWindowContainer extends WindowContainer<DisplayContent>
            final Task rootPinnedTask = taskDisplayArea.getRootPinnedTask();
            if (rootPinnedTask != null) {
                transitionController.collect(rootPinnedTask);
                rootPinnedTask.dismissPip();
                // The new ActivityRecord should replace the existing PiP, so it's more desirable
                // that the old PiP disappears instead of turning to full-screen at the same time,
                // as the Task#dismissPip is trying to do.
                removeRootTasksInWindowingModes(WINDOWING_MODE_PINNED);
            }

            // Set a transition to ensure that we don't immediately try and update the visibility