From 0551313a9ba32f97ff130f83ac4630316a060b44 Mon Sep 17 00:00:00 2001 From: Tracy Zhou Date: Thu, 17 Feb 2022 00:14:50 -0800 Subject: [PATCH] Correct order of split action buttons Fixes: 219988163 Fixes: 217965089 Test: https://screenshot.googleplex.com/8LNMBeEQhMVnDSm Change-Id: I760c0b8085069181d9a1cdc582ac7d58a08f4724 --- .../android/launcher3/touch/PortraitPagedViewHandler.java | 6 +++--- .../android/launcher3/touch/SeascapePagedViewHandler.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/com/android/launcher3/touch/PortraitPagedViewHandler.java b/src/com/android/launcher3/touch/PortraitPagedViewHandler.java index a308182ebe..0d92e2542a 100644 --- a/src/com/android/launcher3/touch/PortraitPagedViewHandler.java +++ b/src/com/android/launcher3/touch/PortraitPagedViewHandler.java @@ -420,12 +420,12 @@ public class PortraitPagedViewHandler implements PagedOrientationHandler { List options = new ArrayList<>(1); // Add both left and right options if we're in tablet mode if (dp.isTablet && dp.isLandscape) { - options.add(new SplitPositionOption( - R.drawable.ic_split_right, R.string.split_screen_position_right, - STAGE_POSITION_BOTTOM_OR_RIGHT, STAGE_TYPE_MAIN)); options.add(new SplitPositionOption( R.drawable.ic_split_left, R.string.split_screen_position_left, STAGE_POSITION_TOP_OR_LEFT, STAGE_TYPE_MAIN)); + options.add(new SplitPositionOption( + R.drawable.ic_split_right, R.string.split_screen_position_right, + STAGE_POSITION_BOTTOM_OR_RIGHT, STAGE_TYPE_MAIN)); } else { if (dp.isSeascape()) { // Add left/right options diff --git a/src/com/android/launcher3/touch/SeascapePagedViewHandler.java b/src/com/android/launcher3/touch/SeascapePagedViewHandler.java index 6dc0c9af42..69e19f4e6c 100644 --- a/src/com/android/launcher3/touch/SeascapePagedViewHandler.java +++ b/src/com/android/launcher3/touch/SeascapePagedViewHandler.java @@ -164,7 +164,7 @@ public class SeascapePagedViewHandler extends LandscapePagedViewHandler { // Add "right" option which is actually the top return Collections.singletonList(new SplitPositionOption( R.drawable.ic_split_right, R.string.split_screen_position_right, - STAGE_POSITION_TOP_OR_LEFT, STAGE_TYPE_MAIN)); + STAGE_POSITION_BOTTOM_OR_RIGHT, STAGE_TYPE_MAIN)); } @Override