Merge "Fix drag to split in RTL" into tm-dev am: 1970f8ddd2 am: a3608361a1

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17725414

Change-Id: I7a4d763a263b1cba19603286134ddd097eedd8e0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Mady Mellor
2022-04-18 17:52:55 +00:00
committed by Automerger Merge Worker

View File

@@ -94,6 +94,9 @@ public class DragLayout extends LinearLayout {
mDividerSize = context.getResources().getDimensionPixelSize( mDividerSize = context.getResources().getDimensionPixelSize(
R.dimen.split_divider_bar_width); 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); mDropZoneView1 = new DropZoneView(context);
mDropZoneView2 = new DropZoneView(context); mDropZoneView2 = new DropZoneView(context);
addView(mDropZoneView1, new LinearLayout.LayoutParams(MATCH_PARENT, addView(mDropZoneView1, new LinearLayout.LayoutParams(MATCH_PARENT,