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

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

Merge "Remove imprecise condition of orientation update by translucent activity" into main

parents c6b5d1bc e6da6c1e
Loading
Loading
Loading
Loading
+5 −9
Original line number Diff line number Diff line
@@ -6962,11 +6962,11 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
                }
                return;
            }
            if (mFixedRotationLaunchingApp.hasFixedRotationTransform(r)) {
            if (!r.isVisible()) {
                // Let the opening activity update orientation.
                return;
            }
            if (mFixedRotationLaunchingApp.hasFixedRotationTransform(r)) {
                if (mFixedRotationLaunchingApp.hasAnimatingFixedRotationTransition()) {
                    // Waiting until all of the associated activities have done animation, or the
                    // orientation would be updated too early and cause flickering.
@@ -6974,11 +6974,7 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
                }
            } else {
                // Check to skip updating display orientation by a non-top activity.
                if ((!r.isVisible() || !mFixedRotationLaunchingApp.fillsParent())
                        // When closing a translucent task A (r.fillsParent() is false) to a
                        // visible task B, because only A has visibility change, there is only A's
                        // transition callback. Then it still needs to update orientation for B.
                        && r.fillsParent()) {
                if (!mFixedRotationLaunchingApp.fillsParent()) {
                    return;
                }
                if (r.inTransition()) {