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

Commit 6b930544 authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Share the same rotation transform for non top visible activity" into main

parents 6bb86514 ebf71039
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -1874,7 +1874,16 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
                orientation = nextCandidate.getRequestedOrientation();
            }
        }
        if (orientation == topOrientation || ar.inMultiWindowMode()
        if (orientation == topOrientation) {
            if (mFixedRotationLaunchingApp != null
                    && orientation == mFixedRotationLaunchingApp.getRequestedOrientation()) {
                // Reuse the transform if the non-top-visible activity has the same orientation as
                // the rotated launching top.
                ar.linkFixedRotationTransform(mFixedRotationLaunchingApp);
            }
            return;
        }
        if (ar.inMultiWindowMode()
                || ar.getTask().inMultiWindowMode()
                || ar.getRequestedConfigurationOrientation() == ORIENTATION_UNDEFINED) {
            return;