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

Commit 1b59b7d4 authored by Winson Chung's avatar Winson Chung Committed by android-build-merger
Browse files

Merge "Disable auto-enter PIP when launching an assistant activity" into oc-dr1-dev

am: 7ee9ec59

Change-Id: I3dddc7358cf0147dbd334f9f7e0ec7365048b65b
parents 44ac9ca4 7ee9ec59
Loading
Loading
Loading
Loading
+5 −3
Original line number Original line Diff line number Diff line
@@ -2882,8 +2882,9 @@ class ActivityStack<T extends StackWindowController> extends ConfigurationContai
                    } else {
                    } else {
                        // If a new task is being launched, then mark the existing top activity as
                        // If a new task is being launched, then mark the existing top activity as
                        // supporting picture-in-picture while pausing
                        // supporting picture-in-picture while pausing
                        if (focusedTopActivity != null &&
                        if (focusedTopActivity != null
                                focusedTopActivity.getStack().getStackId() != PINNED_STACK_ID) {
                                && focusedTopActivity.getStackId() != PINNED_STACK_ID
                                && r.getStackId() != ASSISTANT_STACK_ID) {
                            focusedTopActivity.supportsPictureInPictureWhilePausing = true;
                            focusedTopActivity.supportsPictureInPictureWhilePausing = true;
                        }
                        }
                        transit = TRANSIT_TASK_OPEN;
                        transit = TRANSIT_TASK_OPEN;
@@ -4549,7 +4550,8 @@ class ActivityStack<T extends StackWindowController> extends ConfigurationContai
        }
        }
        // If a new task is moved to the front, then mark the existing top activity as supporting
        // If a new task is moved to the front, then mark the existing top activity as supporting
        // picture-in-picture while paused
        // picture-in-picture while paused
        if (topActivity != null && topActivity.getStack().getStackId() != PINNED_STACK_ID) {
        if (topActivity != null && topActivity.getStackId() != PINNED_STACK_ID
                && tr.getStackId() != ASSISTANT_STACK_ID) {
            topActivity.supportsPictureInPictureWhilePausing = true;
            topActivity.supportsPictureInPictureWhilePausing = true;
        }
        }