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

Commit 8b899208 authored by Wale Ogunwale's avatar Wale Ogunwale Committed by android-build-merger
Browse files

Merge "Fixed issue with wrong stack fullscreen state on configuration change"...

Merge "Fixed issue with wrong stack fullscreen state on configuration change" into nyc-dev am: b59beffa am: 31342b48
am: 219fb7ae

* commit '219fb7ae':
  Fixed issue with wrong stack fullscreen state on configuration change

Change-Id: Ib2508167c2a1b41a7530f0f892f7bde10e4a1061
parents 4d002d39 219fb7ae
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -383,6 +383,12 @@ public class TaskStack implements DimLayer.DimLayerUser,
    }

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

        if (mLastConfigChangedRotation != mLastUpdateDisplayInfoRotation) {
            // We wait for the rotation values after configuration change and display info. update
            // to be equal before updating the bounds due to rotation change otherwise things might
@@ -399,6 +405,7 @@ public class TaskStack implements DimLayer.DimLayerUser,
        }

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