From c26e5fff7cdd93f3df85190b0990537529b7636f Mon Sep 17 00:00:00 2001 From: Jon Miranda Date: Tue, 29 Jun 2021 12:53:27 -0700 Subject: [PATCH] Allow two lines max for text view in system shortcuts. This makes it more accessible for more languages. Bug: 185770234 Test: set language to Spanish, ensure 2 lines ensure deep shortcuts remain 1 lines Change-Id: I652fe6a51bde5d8c30f695a0a56f0879412bca01 --- res/layout/system_shortcut.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/res/layout/system_shortcut.xml b/res/layout/system_shortcut.xml index 2cdf1f4bdb..de091c51c7 100644 --- a/res/layout/system_shortcut.xml +++ b/res/layout/system_shortcut.xml @@ -32,7 +32,8 @@ android:paddingStart="@dimen/deep_shortcuts_text_padding_start" android:paddingEnd="@dimen/popup_padding_end" android:textSize="14sp" - android:singleLine="true" + android:minLines="1" + android:maxLines="2" android:ellipsize="end" android:textColor="?android:attr/textColorPrimary" launcher:iconDisplay="shortcut_popup"