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
This commit is contained in:
Sebastian Franco
2025-05-22 11:46:57 -07:00
parent 550dbb0021
commit 376d628859

View File

@@ -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;
}