From 2f8e69ea96eaeab542b6859317c5e5af1845700d Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Fri, 1 Jul 2022 15:05:06 +0100 Subject: [PATCH] Always return portrait orientation handler when Recents activity can rotate Fix: 232164817 Test: In tablet, launch app in landscape, rotate to portrait, swipe up and RecentsView should be in correct orientation Test: In phone, swipe up to potrait home from landscape only apps Change-Id: Ia7cbd841decc4370aaf3de1f865e5abb9f5f6bf0 --- .../src/com/android/quickstep/util/RecentsOrientedState.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/quickstep/src/com/android/quickstep/util/RecentsOrientedState.java b/quickstep/src/com/android/quickstep/util/RecentsOrientedState.java index 14190b364e..f2fcd06499 100644 --- a/quickstep/src/com/android/quickstep/util/RecentsOrientedState.java +++ b/quickstep/src/com/android/quickstep/util/RecentsOrientedState.java @@ -221,8 +221,7 @@ public class RecentsOrientedState implements private boolean updateHandler() { mRecentsActivityRotation = inferRecentsActivityRotation(mDisplayRotation); - if (mRecentsActivityRotation == mTouchRotation || (isRecentsActivityRotationAllowed() - && (mFlags & FLAG_SWIPE_UP_NOT_RUNNING) != 0)) { + if (mRecentsActivityRotation == mTouchRotation || isRecentsActivityRotationAllowed()) { mOrientationHandler = PagedOrientationHandler.PORTRAIT; } else if (mTouchRotation == ROTATION_90) { mOrientationHandler = PagedOrientationHandler.LANDSCAPE;