Merge "Use correct task bounds after updating override config" into nyc-dev am: 650df4a

am: 13b9ca9

* commit '13b9ca9dab12795ba5495023e1273a1c1404c47d':
  Use correct task bounds after updating override config
This commit is contained in:
Andrii Kulian
2016-03-28 17:13:51 +00:00
committed by android-build-merger
2 changed files with 4 additions and 1 deletions

View File

@@ -1798,7 +1798,7 @@ public final class ActivityStackSupervisor implements DisplayListener {
// WM resizeTask must be done after the task is moved to the correct stack,
// because Task's setBounds() also updates dim layer's bounds, but that has
// dependency on the stack.
mWindowManager.resizeTask(task.taskId, bounds, task.mOverrideConfig,
mWindowManager.resizeTask(task.taskId, task.mBounds, task.mOverrideConfig,
false /* relayout */, false /* forced */);
}
}

View File

@@ -1518,6 +1518,9 @@ final class TaskRecord {
Rect updateOverrideConfigurationFromLaunchBounds() {
final Rect bounds = validateBounds(getLaunchBounds());
updateOverrideConfiguration(bounds);
if (bounds != null) {
bounds.set(mBounds);
}
return bounds;
}