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

Commit c448cf3a authored by Andrii Kulian's avatar Andrii Kulian Committed by android-build-merger
Browse files

Merge "Fix exception when trying to update config of detached stack" into nyc-dev am: a1984286

am: e2a0c943

* commit 'e2a0c943':
  Fix exception when trying to update config of detached stack

Change-Id: Ia64ba236330f6e4fca39ab690aa2c780bf53163d
parents fd752502 e2a0c943
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -381,6 +381,11 @@ public class TaskStack implements DimLayer.DimLayerUser,
    }

    private boolean updateBoundsAfterConfigChange() {
        if (mDisplayContent == null) {
            // If the stack is already detached we're not updating anything,
            // as it's going away soon anyway.
            return false;
        }
        final int newRotation = getDisplayInfo().rotation;
        final int newDensity = getDisplayInfo().logicalDensityDpi;