summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jeremy Sim <jeremysim@google.com> 2024-12-16 14:59:32 -0800
committer Jeremy Sim <jeremysim@google.com> 2024-12-16 14:59:32 -0800
commit5b23c7d4611fd866526fb23f5352bb67a89a9754 (patch)
treeec408c1f1d693ee357af4cb8aa18fed7a09cdb66
parentbd2ba9cc5c897112f26c8327ae3f7fbd083077c1 (diff)
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
-rw-r--r--libs/WindowManager/Shell/src/com/android/wm/shell/common/split/SplitLayout.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/SplitLayout.java b/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/SplitLayout.java
index 21c44c9b92ee..4bcec702281d 100644
--- a/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/SplitLayout.java
+++ b/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/SplitLayout.java
@@ -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();
}
}
}