Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9c967b5 authored by Vinit Nayak's avatar Vinit Nayak
Browse files

Add flex split flag for resizing for launch adjacent

* It accidentally resizes on non-launch adjacent use cases,
see bug for more info

Bug: 383624769
Flag: com.android.wm.shell.enable_flexible_two_app_split
Test: No resizing happens when flag is off
Change-Id: Id22ee84d77ba6c89bd75e88fbe53bf10c8d16fdb
parent 6904a08f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2920,7 +2920,7 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,
                    prepareEnterSplitScreen(out);
                    mSplitTransitions.setEnterTransition(transition, request.getRemoteTransition(),
                            TRANSIT_SPLIT_SCREEN_PAIR_OPEN, !mIsDropEntering, SNAP_TO_2_50_50);
                } else if (isSplitScreenVisible() && isOpening) {
                } else if (enableFlexibleTwoAppSplit() && isSplitScreenVisible() && isOpening) {
                    // launching into an existing split stage; possibly launchAdjacent
                    // If we're replacing a pip-able app, we need to let mixed handler take care of
                    // it. Otherwise we'll just treat it as an enter+resize