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

Commit ce16973c authored by Jeremy Sim's avatar Jeremy Sim
Browse files

Fix bug with Overview tile cropping in flexible split

Fixes a small typo that was resulting in one Overview case (swiping to Overview in portrait mode in 90:10 split) being drawn with the wrong ratio.

Fixes: 391899871
Flag: com.android.wm.shell.enable_flexible_two_app_split
Test: Repro case has the correct behavior now.
Change-Id: I4874e14f9d5431097196eb61ad8d1cfd468874df
parent 29ebd786
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -2079,8 +2079,8 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,
                            Math.max(topLeftBounds.top, 0);
                            Math.max(topLeftBounds.top, 0);
                    bottomRightBounds.right =
                    bottomRightBounds.right =
                            Math.min(bottomRightBounds.right, mSplitLayout.getDisplayWidth());
                            Math.min(bottomRightBounds.right, mSplitLayout.getDisplayWidth());
                    bottomRightBounds.top =
                    bottomRightBounds.bottom =
                            Math.min(bottomRightBounds.top, mSplitLayout.getDisplayHeight());
                            Math.min(bottomRightBounds.bottom, mSplitLayout.getDisplayHeight());


                    // TODO (b/349828130): Can change to getState() fully after brief soak time.
                    // TODO (b/349828130): Can change to getState() fully after brief soak time.
                    if (mSplitState.get() != currentSnapPosition) {
                    if (mSplitState.get() != currentSnapPosition) {