From b9eb01643ca17e7f34f7858ce7ee527b6f9199e8 Mon Sep 17 00:00:00 2001 From: Chun-Ku Lin Date: Fri, 10 May 2024 00:26:56 +0000 Subject: [PATCH] Apply lineBreakWordStyle and hyphenationFrequency in EditShortcutScreen Uses the same style as mentioned in b/217659992 and b/232992171 Note: This doesn't fix the long word issue in Thai. This is the best we can get so far. Bug: 335749219 Test: manual (Can still see the EditShortcutScreen with no crash) Flag: EXEMPT resource only Change-Id: I3c1634de4a33c7ab6a80163217ef1cc65585c584 --- res/layout/accessibility_shortcut_option_checkable.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/res/layout/accessibility_shortcut_option_checkable.xml b/res/layout/accessibility_shortcut_option_checkable.xml index 15513520a7f..3218ca38655 100644 --- a/res/layout/accessibility_shortcut_option_checkable.xml +++ b/res/layout/accessibility_shortcut_option_checkable.xml @@ -48,6 +48,8 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="?android:attr/listPreferredItemPaddingStart" + android:hyphenationFrequency="normalFast" + android:lineBreakWordStyle="phrase" android:textAppearance="?android:attr/textAppearanceLarge" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@android:id/checkbox" @@ -58,6 +60,8 @@ android:id="@android:id/summary" android:layout_width="0dp" android:layout_height="wrap_content" + android:hyphenationFrequency="normalFast" + android:lineBreakWordStyle="phrase" android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="?android:attr/textColorSecondary" app:layout_constrainedHeight="true"