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

This commit is contained in:
Andrii Kulian
2016-05-26 00:24:07 +00:00
committed by Android (Google) Code Review

View File

@@ -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;