From 8d9fd999d23e0b1e5e39db5a638651ca0b8fcdf1 Mon Sep 17 00:00:00 2001 From: Tony Huang Date: Tue, 6 Jun 2023 17:52:59 +0800 Subject: [PATCH] Update divider if split transition with display change When resize then rotate display case, this transition should be animatePendingSplitWithDisplayChange due to sometimes we start rotation before the resize transition finished. In this case, we should update the divider layout too to ensure it draw on correct position for currect display status. Fix: 285231670 Test: manual Test: pass existing tests Change-Id: Iada83fec6ee612446b4797a07583ee5a3d9ee9cd --- .../src/com/android/wm/shell/splitscreen/StageCoordinator.java | 1 + 1 file changed, 1 insertion(+) 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 38911dbfc2b56..c8e88fcc0a6af 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 @@ -2499,6 +2499,7 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler, // handling to the mixed-handler to deal with splitting it up. if (mMixedHandler.animatePendingSplitWithDisplayChange(transition, info, startTransaction, finishTransaction, finishCallback)) { + mSplitLayout.update(startTransaction); return true; } }