From 11aa56e48fc31bd4c22ae0c7ee1fd5843e6ed5fd Mon Sep 17 00:00:00 2001 From: Shamali P Date: Mon, 8 Apr 2024 18:21:47 +0000 Subject: [PATCH] Add maxlines bounds to the category title. - So far, none of the translations exceeded 1-line, but setting maxlines to avoid it to happen in future. * http://screen/35PYFHV5SCeBhqC (at max font size) Bug: N/A Flag: ACONFIG com.android.launcher3.enable_categorized_widget_suggestions TEAMFOOD Test: Manual - see videos. Change-Id: I263706a5d85dd4a37a4150abd58222283d5e039a --- res/layout/widget_recommendations.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/res/layout/widget_recommendations.xml b/res/layout/widget_recommendations.xml index 531db2edd4..5879b0f1a9 100644 --- a/res/layout/widget_recommendations.xml +++ b/res/layout/widget_recommendations.xml @@ -33,6 +33,9 @@ android:textColor="?attr/widgetPickerTitleColor" android:textFontWeight="500" android:textSize="16sp" + android:maxLines="1" + android:paddingHorizontal="8dp" + android:ellipsize="end" android:visibility="gone" />