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

Commit da5d3921 authored by Shivangi Dubey's avatar Shivangi Dubey
Browse files

Fix split screen unfold animation

Expectation is to not animate sides adjacent to split bar. There is a bug in identifying left-right split from top-bottom split.
This change uses SplitScreenController#isLeftRightSplit instead of comparing width and height of root task.

Bug: 377657152
Test: 1. Open two apps in splitscreen on folded screen
2. Unfold device and see if sides adjacent to split bar animate
Flag: EXEMPT bugfix

Change-Id: I5856ea458637e869d3080042cd23fa31fcaa766b
parent d3fe479d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -334,8 +334,8 @@ public class SplitTaskUnfoldAnimator implements UnfoldTaskAnimator,

            // Sides adjacent to split bar or task bar are not be animated.
            Insets margins;
            final boolean isLandscape = mRootStageBounds.width() > mRootStageBounds.height();
            if (isLandscape) { // Left and right splits.
            final boolean isLeftRightSplit = mSplitScreenController.get().get().isLeftRightSplit();
            if (isLeftRightSplit) {
                margins = getLandscapeMargins(margin, taskbarExpanded);
            } else { // Top and bottom splits.
                margins = getPortraitMargins(margin, taskbarExpanded);