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

Commit b9625b33 authored by tanxiaoyan's avatar tanxiaoyan
Browse files

Don't associate starting data with task when the fixed rotation started for AE



Bug:369522908

If the launching activity has the fixed rotation transform. Even if isEmbedded Activity, the surface of starting window should remain in activity to follow the rotation transform from activity. Otherwise the starting window will show in different orientation.

Change-Id: I0ec67a7eea905b8fa7e4cdd2bf12005c5fa91b16
Signed-off-by: default avatartanxiaoyan <tanxiaoyan@xiaomi.com>
parent b4596695
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1469,7 +1469,7 @@ class Task extends TaskFragment {
            // The starting window should keep covering its task when a pure TaskFragment is added
            // because its bounds may not fill the task.
            final ActivityRecord top = getTopMostActivity();
            if (top != null) {
            if (top != null && !top.hasFixedRotationTransform()) {
                top.associateStartingWindowWithTaskIfNeeded();
            }
        }