diff --git a/quickstep/src/com/android/quickstep/SwipeUpAnimationLogic.java b/quickstep/src/com/android/quickstep/SwipeUpAnimationLogic.java index 51a491ebf6..ebe46fecab 100644 --- a/quickstep/src/com/android/quickstep/SwipeUpAnimationLogic.java +++ b/quickstep/src/com/android/quickstep/SwipeUpAnimationLogic.java @@ -89,13 +89,13 @@ public abstract class SwipeUpAnimationLogic implements LauncherSplitScreenListener.INSTANCE.getNoCreate() .getRunningSplitTaskIds().length > 1; - TaskViewSimulator primaryTVS = new TaskViewSimulator(context, - gestureState.getActivityInterface()); - primaryTVS.getOrientationState().update( - mDeviceState.getRotationTouchHelper().getCurrentActiveRotation(), - mDeviceState.getRotationTouchHelper().getDisplayRotation()); mTargetGluer = new RemoteTargetGluer(mContext, mGestureState.getActivityInterface()); mRemoteTargetHandles = mTargetGluer.getRemoteTargetHandles(); + runActionOnRemoteHandles(remoteTargetHandle -> + remoteTargetHandle.getTaskViewSimulator().getOrientationState().update( + mDeviceState.getRotationTouchHelper().getCurrentActiveRotation(), + mDeviceState.getRotationTouchHelper().getDisplayRotation() + )); } protected void initTransitionEndpoints(DeviceProfile dp) { diff --git a/src/com/android/launcher3/touch/PortraitPagedViewHandler.java b/src/com/android/launcher3/touch/PortraitPagedViewHandler.java index 064d808756..f1fd439a06 100644 --- a/src/com/android/launcher3/touch/PortraitPagedViewHandler.java +++ b/src/com/android/launcher3/touch/PortraitPagedViewHandler.java @@ -503,9 +503,11 @@ public class PortraitPagedViewHandler implements PagedOrientationHandler { if (dp.isLandscape) { splitOffset.x = splitInfo.leftTopBounds.width() + splitInfo.visualDividerBounds.width(); + splitOffset.y = 0; } else { splitOffset.y = splitInfo.leftTopBounds.height() + splitInfo.visualDividerBounds.height(); + splitOffset.x = 0; } } }