From da71f41263338808dae68361f3906da7abd42e51 Mon Sep 17 00:00:00 2001 From: Pat Manning Date: Wed, 29 Sep 2021 13:22:35 +0000 Subject: [PATCH] Remove check that system rotation must be allowed for recents rotation to be allowed. This check existed before the user was able to rotate via the rotation button while autorotate setting is off. Test: manual Fix: 201511975 Change-Id: I920886cb42ec5b8f4d3eb0bdd80b216cd7c3c849 --- .../quickstep/views/GoOverviewActionsView.java | 2 +- .../com/android/quickstep/TaskOverlayFactory.java | 2 +- .../quickstep/util/RecentsOrientedState.java | 15 ++++----------- .../com/android/quickstep/views/RecentsView.java | 7 +++---- 4 files changed, 9 insertions(+), 17 deletions(-) diff --git a/go/quickstep/src/com/android/quickstep/views/GoOverviewActionsView.java b/go/quickstep/src/com/android/quickstep/views/GoOverviewActionsView.java index 97ba5905e0..492611fab9 100644 --- a/go/quickstep/src/com/android/quickstep/views/GoOverviewActionsView.java +++ b/go/quickstep/src/com/android/quickstep/views/GoOverviewActionsView.java @@ -117,7 +117,7 @@ public class GoOverviewActionsView extends OverviewActionsView { if (isRotationEnabled) { @@ -375,13 +375,6 @@ public class RecentsOrientedState implements | FLAG_HOME_ROTATION_FORCE_ENABLED_FOR_TESTING)) != 0; } - /** - * Returns true if the activity can rotate, if allowed by system rotation settings - */ - public boolean canRecentsActivityRotate() { - return (mFlags & FLAG_SYSTEM_ROTATION_ALLOWED) != 0 && isRecentsActivityRotationAllowed(); - } - /** * Enables or disables the rotation watcher for listening to rotation callbacks */ diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 88f82a4f87..20ecd755d0 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -116,7 +116,6 @@ import com.android.launcher3.InvariantDeviceProfile; import com.android.launcher3.PagedView; import com.android.launcher3.R; import com.android.launcher3.Utilities; -import com.android.launcher3.anim.AnimationSuccessListener; import com.android.launcher3.anim.AnimatorListeners; import com.android.launcher3.anim.AnimatorPlaybackController; import com.android.launcher3.anim.PendingAnimation; @@ -1612,7 +1611,7 @@ public abstract class RecentsView