From 032fc54d6e7f5abec069b0b6ab4d280c4a39b61b Mon Sep 17 00:00:00 2001 From: Jeff Chang Date: Wed, 10 Aug 2022 17:38:49 +0800 Subject: [PATCH] Clean divider-remote-animating flag when exit split MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The flag is used to control divider bar animation. We should also clean the flag while exit split-screen to prevent split can not update the divider bar visibility. Currently, the flag is clean from remote animation finished or canceled. It’might be have the possibility of not cleaning the flag if launch aborted. Bug: 241861895 Test: manual Test: pass existing tests Change-Id: I07d1888957496dab8d5886eb7d9b21cc133b4214 --- .../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 8e1ae397ea645..cfc193655f099 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 @@ -894,6 +894,7 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler, } }); mShouldUpdateRecents = false; + mIsDividerRemoteAnimating = false; if (childrenToTop == null) { mSideStage.removeAllTasks(wct, false /* toTop */);