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

Commit 435da2c4 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fixing rotation issues." into oc-dev

parents 13df64aa a2249ac4
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -2252,9 +2252,10 @@ public class ActivityStackSupervisor extends ConfigurationContainer implements D
            return;
        }

        if (!allowResizeInDockedMode && getStack(DOCKED_STACK_ID) != null) {
            // If the docked stack exist we don't allow resizes of stacks not caused by the docked
            // stack size changing so things don't get out of sync.
        if (!allowResizeInDockedMode && !StackId.tasksAreFloating(stackId) &&
                getStack(DOCKED_STACK_ID) != null) {
            // If the docked stack exists, don't resize non-floating stacks independently of the
            // size computed from the docked stack size (otherwise they will be out of sync)
            return;
        }

+6 −1
Original line number Diff line number Diff line
@@ -340,7 +340,7 @@ public class TaskStack extends WindowContainer<Task> implements DimLayer.DimLaye
     * @return the source bounds for the bounds animation.
     */
    void getAnimatingSourceBounds(Rect outBounds) {
        if (mBoundsAnimationSourceBounds != null) {
        if (!mBoundsAnimationSourceBounds.isEmpty()) {
            outBounds.set(mBoundsAnimationSourceBounds);
            return;
        }
@@ -419,6 +419,11 @@ public class TaskStack extends WindowContainer<Task> implements DimLayer.DimLaye
            // we can just update and return them here
            setBounds(mBounds);
            mBoundsAfterRotation.set(mBounds);

            // Once we've set the bounds based on the rotation of the old bounds in the new
            // orientation, clear the animation target bounds since they are obsolete
            mBoundsAnimationTarget.setEmpty();
            mBoundsAnimationSourceBounds.setEmpty();
            return true;
        }