Update when display change callback on legacy transition

This callback is only used on shell transtion before, but we should
do it on legacy transtion too for solving sync issue between SysUi and
WindowManager.

Fix: 237229859
Test: manual
Test: pass existing tests
Change-Id: I8c1669a8bafa5c369ee34380aed3e2c5c0e8c326
This commit is contained in:
Tony Huang
2022-06-29 15:55:12 +08:00
parent b8cbfd3fd5
commit 3685022c7d

View File

@@ -1353,8 +1353,6 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,
private void onDisplayChange(int displayId, int fromRotation, int toRotation,
@Nullable DisplayAreaInfo newDisplayAreaInfo, WindowContainerTransaction wct) {
if (!mMainStage.isActive()) return;
// Only do this when shell transition
if (!ENABLE_SHELL_TRANSITIONS) return;
mDisplayLayout.rotateTo(mContext.getResources(), toRotation);
mSplitLayout.rotateTo(toRotation, mDisplayLayout.stableInsets());