Merge "Always return portrait orientation handler when Recents activity can rotate" into tm-qpr-dev am: 1eb730a69c

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19149828

Change-Id: I9e5bccfe2e0433c5bea743010fdce98298ee56d7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Alex Chau
2022-07-08 11:11:18 +00:00
committed by Automerger Merge Worker
@@ -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;