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

am: e2a0c9437c

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

Change-Id: Ia64ba236330f6e4fca39ab690aa2c780bf53163d
This commit is contained in:
Andrii Kulian
2016-05-26 00:52:20 +00:00
committed by android-build-merger

View File

@@ -381,6 +381,11 @@ public class TaskStack implements DimLayer.DimLayerUser,
} }
private boolean updateBoundsAfterConfigChange() { 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 newRotation = getDisplayInfo().rotation;
final int newDensity = getDisplayInfo().logicalDensityDpi; final int newDensity = getDisplayInfo().logicalDensityDpi;