summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mady Mellor <madym@google.com> 2022-04-18 17:11:23 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2022-04-18 17:11:23 +0000
commit1970f8ddd2326b873b13fb24c143c96c9aa41c4b (patch)
tree3621a03269916a008b76d1da2bb4d93da111052d
parent983602fcea625c18b30d433ae33085bec1a18f1f (diff)
parent76bbf7a7311ca558149ea2c4444e990d066b1144 (diff)
Merge "Fix drag to split in RTL" into tm-dev
-rw-r--r--libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/DragLayout.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/DragLayout.java b/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/DragLayout.java
index 25fe8b9e0da3..ff3c0834cf62 100644
--- a/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/DragLayout.java
+++ b/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/DragLayout.java
@@ -94,6 +94,9 @@ public class DragLayout extends LinearLayout {
mDividerSize = context.getResources().getDimensionPixelSize(
R.dimen.split_divider_bar_width);
+ // Always use LTR because we assume dropZoneView1 is on the left and 2 is on the right when
+ // showing the highlight.
+ setLayoutDirection(LAYOUT_DIRECTION_LTR);
mDropZoneView1 = new DropZoneView(context);
mDropZoneView2 = new DropZoneView(context);
addView(mDropZoneView1, new LinearLayout.LayoutParams(MATCH_PARENT,