Update current rotation of recents to task transform
The RemoteTargetHandle are created with default orientation state.
So it also needs to be initialized to apply correct transform.
Bug: 304408369
Bug: 308520924
Test: Enable home rotation. Put device in landscape.
Launch Settings and press home key. And then launch
a portrait only app and use recents to switch to Settings.
Change-Id: I489957acdaa76c689aa94dd1e5ad8824b430760c
diff --git a/quickstep/src/com/android/quickstep/TaskViewUtils.java b/quickstep/src/com/android/quickstep/TaskViewUtils.java
index 819f249..13b752e 100644
--- a/quickstep/src/com/android/quickstep/TaskViewUtils.java
+++ b/quickstep/src/com/android/quickstep/TaskViewUtils.java
@@ -197,7 +197,11 @@
remoteTargetHandles = gluer.assignTargets(targets);
}
}
+ final int recentsActivityRotation =
+ recentsView.getPagedViewOrientedState().getRecentsActivityRotation();
for (RemoteTargetHandle remoteTargetGluer : remoteTargetHandles) {
+ remoteTargetGluer.getTaskViewSimulator().getOrientationState().setRecentsRotation(
+ recentsActivityRotation);
remoteTargetGluer.getTransformParams().setSyncTransactionApplier(applier);
}