Merge "Fixed issue with wrong stack fullscreen state on configuration change" into nyc-dev

am: b59beff

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

Change-Id: I797cb8d0e8647f411c58ee8e9daf7417bf355761
This commit is contained in:
Wale Ogunwale
2016-04-25 22:57:48 +00:00
committed by android-build-merger

View File

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