From 376d6288599db0185e8653eef32a11bc3bc9012c Mon Sep 17 00:00:00 2001 From: Sebastian Franco Date: Thu, 22 May 2025 11:46:57 -0700 Subject: [PATCH] Prevent recents rotation animation if we are in Fixed Landscape When in this mode we can let the system rotate the device. In other cases we have a fake rotation and so we need to manually rotate. Fix: 401484242 Flag: com.android.launcher3.one_grid_specs Test: Manual testing Change-Id: I74e5cb0363a34edb69b39f9a387b9020116d5632 --- quickstep/src/com/android/quickstep/views/RecentsView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 5bd44c1ab5..5575ff8272 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -2951,7 +2951,8 @@ public abstract class RecentsView< } private void animateRecentsRotationInPlace(int newRotation) { - if (mOrientationState.isRecentsActivityRotationAllowed()) { + if (mOrientationState.isRecentsActivityRotationAllowed() + || mOrientationState.isLauncherFixedLandscape()) { // Let system take care of the rotation return; }