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

Commit 51814c7e authored by Winson Chung's avatar Winson Chung Committed by android-build-merger
Browse files

Merge "Fixing issue with activity incorrectly auto-entering PiP." into oc-dev am: afb6b504

am: e2d8a79b

Change-Id: I938ffe52529830e5a109bc08298a4ffd3301982f
parents 58691f12 e2d8a79b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2795,7 +2795,8 @@ class ActivityStack<T extends StackWindowController> extends ConfigurationContai
                    } else {
                        // If a new task is being launched, then mark the existing top activity as
                        // supporting picture-in-picture while pausing
                        if (focusedTopActivity != null) {
                        if (focusedTopActivity != null &&
                                focusedTopActivity.getStack().getStackId() != PINNED_STACK_ID) {
                            focusedTopActivity.supportsPictureInPictureWhilePausing = true;
                        }
                        transit = TRANSIT_TASK_OPEN;
@@ -4403,7 +4404,7 @@ class ActivityStack<T extends StackWindowController> extends ConfigurationContai
        }
        // If a new task is moved to the front, then mark the existing top activity as supporting
        // picture-in-picture while paused
        if (topActivity != null) {
        if (topActivity != null && topActivity.getStack().getStackId() != PINNED_STACK_ID) {
            topActivity.supportsPictureInPictureWhilePausing = true;
        }