Clean divider-remote-animating flag when exit split

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
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 8e1ae39..cfc1936 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 @@
             }
         });
         mShouldUpdateRecents = false;
+        mIsDividerRemoteAnimating = false;
 
         if (childrenToTop == null) {
             mSideStage.removeAllTasks(wct, false /* toTop */);