Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2f8e69ea authored by Alex Chau's avatar Alex Chau
Browse files

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
parent 84f9f74c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;