diff options
| author | 2023-06-20 15:51:57 +0800 | |
|---|---|---|
| committer | 2023-06-20 18:00:28 +0800 | |
| commit | c6feebfd9598e106f0cb1394271da14b5b9cb983 (patch) | |
| tree | 42a2b876795af0ce100fc89b7debd5ab301e86b8 /libs | |
| parent | 149fed16dff45bc173b8bf21d7554655bb1004c1 (diff) | |
Do not add divider to dismiss transition
If there is also a display change in same transition, we need to
release old divider surface and it lead to crash due to it running
animation before release.
Actually, we cannot see divider animation in dismiss transition
due to it didn't be added in transition root so its animation
is invisible. So remove this didn't affect current dismiss animation.
Fix: 287207156
Test: manual
Test: pass existing tests
Change-Id: I9c0cacfbd8df7deed5c2b028c1e2af9a0cac540a
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/StageCoordinator.java | 9 |
1 files changed, 5 insertions, 4 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 964ba9f9aa7c..9ee1a901eace 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 @@ -2530,8 +2530,11 @@ 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); - startTransaction.apply(); + if (mSplitTransitions.isPendingResize(transition)) { + // Only need to update in resize because divider exist before transition. + mSplitLayout.update(startTransaction); + startTransaction.apply(); + } return true; } } @@ -2888,8 +2891,6 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler, mSideStage.getSplitDecorManager().release(callbackT); callbackWct.setReparentLeafTaskIfRelaunch(mRootTaskInfo.token, false); }); - - addDividerBarToTransition(info, false /* show */); return true; } |