Merge changes from topic "presubmit-am-97667b5fdce34326bf80d681c0a0716d" into tm-mainline-prod

* changes:
  [automerge] Force update orientation handler for initial recents view state. 2p: 671d44b36b
  Force update orientation handler for initial recents view state.
This commit is contained in:
Alex Chau
2022-04-11 12:43:54 +00:00
committed by Android (Google) Code Review
@@ -2073,6 +2073,9 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
if (mOrientationState.setGestureActive(true)) {
setLayoutRotation(rotationTouchHelper.getCurrentActiveRotation(),
rotationTouchHelper.getDisplayRotation());
// Force update to ensure the initial task size is computed even if the orientation has
// not changed.
updateSizeAndPadding();
}
showCurrentTask(runningTaskInfo);