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

Commit 3fa84dce authored by Chong Zhang's avatar Chong Zhang Committed by android-build-merger
Browse files

Merge "Update stack bounds for fullscreen if rotated after updateDisplayInfo"...

Merge "Update stack bounds for fullscreen if rotated after updateDisplayInfo" into nyc-dev am: 918084e9
am: 49c0b0cd

* commit '49c0b0cd':
  Update stack bounds for fullscreen if rotated after updateDisplayInfo

Change-Id: I215ab9ebc59c7baa7c9e4e1261097d4b96f01f77
parents f31520e4 49c0b0cd
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -383,12 +383,6 @@ public class TaskStack implements DimLayer.DimLayerUser,
    }

    private boolean updateBoundsAfterConfigChange() {
        if (mFullscreen) {
            // Bounds will already be set correctly when display info is updated in the case of
            // fullscreen.
            return false;
        }

        final int newRotation = getDisplayInfo().rotation;
        final int newDensity = getDisplayInfo().logicalDensityDpi;

@@ -397,6 +391,13 @@ public class TaskStack implements DimLayer.DimLayerUser,
            return false;
        }

        if (mFullscreen) {
            // Update stack bounds again since rotation changed since updateDisplayInfo().
            setBounds(null);
            // Return false since we don't need the client to resize.
            return false;
        }

        final int oldDockSide = mStackId == DOCKED_STACK_ID ? getDockSide() : DOCKED_INVALID;
        mTmpRect2.set(mBounds);
        mDisplayContent.rotateBounds(mRotation, newRotation, mTmpRect2);