From 3685022c7da46d9aa036c843299bf3ca5893a6e7 Mon Sep 17 00:00:00 2001 From: Tony Huang Date: Wed, 29 Jun 2022 15:55:12 +0800 Subject: 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 --- .../Shell/src/com/android/wm/shell/splitscreen/StageCoordinator.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/StageCoordinator.java b/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/StageCoordinator.java index 59b0afe22acb..458246266a70 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/StageCoordinator.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/StageCoordinator.java @@ -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()); -- cgit v1.2.3-59-g8ed1b