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

Commit 913171d5 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Do not skip onMovementBoundsChanged if already in PiP" into sc-dev am: 99bded16

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

Change-Id: I07e7e0527bb13ea35bb927bdc76399297a7f24c6
parents a57130a0 99bded16
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -835,11 +835,14 @@ public class PipTaskOrganizer implements ShellTaskOrganizer.TaskListener,
            WindowContainerTransaction wct) {
        // note that this can be called when swipe-to-home or fixed-rotation is happening.
        // Skip this entirely if that's the case.
        if ((mInSwipePipToHomeTransition || mWaitForFixedRotation) && fromRotation) {
        final boolean waitForFixedRotationOnEnteringPip = mWaitForFixedRotation
                && (mState != State.ENTERED_PIP);
        if ((mInSwipePipToHomeTransition || waitForFixedRotationOnEnteringPip) && fromRotation) {
            if (DEBUG) {
                Log.d(TAG, "Skip onMovementBoundsChanged on rotation change"
                        + " mInSwipePipToHomeTransition=" + mInSwipePipToHomeTransition
                        + " mWaitForFixedRotation=" + mWaitForFixedRotation);
                        + " mWaitForFixedRotation=" + mWaitForFixedRotation
                        + " mState=" + mState);
            }
            return;
        }