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

Commit 5b23c7d4 authored by Jeremy Sim's avatar Jeremy Sim
Browse files

Fix bug with flexible split portrait layout

Accidentally used width() instead of height().

Bug: 349828130
Flag: com.android.wm.shell.enable_flexible_two_app_split
Test: Portrait layout is now correct
Change-Id: I6c397a12e45099c78924f5482b6dcc7817cab3e3
parent bd2ba9cc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -571,9 +571,9 @@ public final class SplitLayout implements DisplayInsetsController.OnInsetsChange
            // For flexible split, expand app offscreen as well
            if (mDividerSnapAlgorithm.areOffscreenRatiosSupported()) {
                if (position <= mDividerSnapAlgorithm.getMiddleTarget().position) {
                    bounds1.top = bounds1.bottom - bounds2.width();
                    bounds1.top = bounds1.bottom - bounds2.height();
                } else {
                    bounds2.bottom = bounds2.top + bounds1.width();
                    bounds2.bottom = bounds2.top + bounds1.height();
                }
            }
        }