Merge "Force update orientation handler for initial recents view state." into tm-dev am: e7b727e88e am: bdeab492c0

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17658703

Change-Id: Ifc571cf00d34b69404e97b9a3239cd3bfa5bda01
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java
index 6859259..e64e439 100644
--- a/quickstep/src/com/android/quickstep/views/RecentsView.java
+++ b/quickstep/src/com/android/quickstep/views/RecentsView.java
@@ -2073,6 +2073,9 @@
         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);