diff options
| author | 2024-12-09 14:11:30 +0100 | |
|---|---|---|
| committer | 2024-12-09 15:21:34 +0100 | |
| commit | c10567ea26dddea0400e3d850b48dd7d68be9a83 (patch) | |
| tree | f586620f23c77b5800e98bd3385c7d74f8bf6f37 | |
| parent | 4b3e0eea114725daa86adc70da85f721d0cff2fc (diff) | |
Ellipsize "Clear all" text when necessary
In some languages and screen configurations, the "Clear all" text does
not fit on the screen. Let's show an ellipsis at the end in that case.
Bug: 375010573
Test: set language to Romanian and increase display size
Flag: com.android.systemui.notifications_redesign_footer_view
Change-Id: I16034fb2c6856f4277292896cf85f622a7fe71dd
| -rw-r--r-- | packages/SystemUI/res/layout/notification_2025_footer.xml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/SystemUI/res/layout/notification_2025_footer.xml b/packages/SystemUI/res/layout/notification_2025_footer.xml index 71c77a56b6a8..9b3d67f7b4a2 100644 --- a/packages/SystemUI/res/layout/notification_2025_footer.xml +++ b/packages/SystemUI/res/layout/notification_2025_footer.xml @@ -64,6 +64,8 @@ android:contentDescription="@string/accessibility_clear_all" android:focusable="true" android:text="@string/clear_all_notifications_text" + android:ellipsize="end" + android:maxLines="1" app:layout_constraintEnd_toStartOf="@id/settings_button" app:layout_constraintStart_toEndOf="@id/history_button" /> |