From f6653b8ba6465a06f13891d8b3788859762a0924 Mon Sep 17 00:00:00 2001 From: Chun-Ku Lin Date: Fri, 15 Dec 2023 02:38:42 +0000 Subject: [PATCH] Fix RTL issue on the edit a11y shortcuts screen. The chain constraint on checkbox and title somehow doesn't work well in RTL language. Remove the chain works. Bug: 300302098 Test: Manual Change-Id: I11b63250754fd8b5c0b0793ea8fff4c13df97e63 --- .../accessibility_shortcut_option_checkable.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/res/layout/accessibility_shortcut_option_checkable.xml b/res/layout/accessibility_shortcut_option_checkable.xml index a5c55950f77..15513520a7f 100644 --- a/res/layout/accessibility_shortcut_option_checkable.xml +++ b/res/layout/accessibility_shortcut_option_checkable.xml @@ -32,23 +32,22 @@ android:id="@android:id/checkbox" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginEnd="?android:attr/listPreferredItemPaddingEnd" android:background="@null" android:clickable="false" android:focusable="false" android:gravity="center_vertical" android:orientation="vertical" + app:layout_constrainedHeight="true" + app:layout_constrainedWidth="true" app:layout_constraintBottom_toBottomOf="@android:id/title" - app:layout_constraintEnd_toStartOf="@android:id/title" - app:layout_constraintHeight="true" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toTopOf="parent" - app:layout_constraintWidth="true" /> + app:layout_constraintTop_toTopOf="parent" />