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

Commit 3b37f1ca authored by Simon (Qiong) Sun's avatar Simon (Qiong) Sun
Browse files

Set/Remove split touch zone for Recents Animation

Dynamically setsand remove the split touch zone when entering and exiting the Recents Animation.

Bug: 395538504
Flag: com.android.wm.shell.enable_flexible_two_app_split
Test: Verified functionality.
Change-Id: I20e4a653a845a1034edf125a3ce94dd91cec124b
parent cd0b2fde
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4231,6 +4231,7 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,

        addDividerBarToTransition(info, false /* show */);
        addAllDimLayersToTransition(info, false /* show */);
        mSplitLayout.removeTouchZones();
    }

    /** Call this when the recents animation canceled during split-screen. */
@@ -4303,6 +4304,7 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,
            finishT.reparent(leash,
                    mSplitMultiDisplayHelper.getDisplayRootTaskLeash(DEFAULT_DISPLAY));
            setDividerVisibility(true, finishT);
            mSplitLayout.populateTouchZones();
            return;
        }