From 8c835785c374048f58a3daa9a3db3a4c72b37db6 Mon Sep 17 00:00:00 2001 From: Nadia Benbernou Date: Wed, 27 Feb 2019 11:42:13 -0500 Subject: [PATCH] Add maxWidths to text views for blocking helper buttons. Also tighten char limits to avoid wrapping when possible. Bug:123619899 Test: Verified text wraps appropriately in Serbian and French. Change-Id: I295133436128929e18c22ede69bdf055a8e44c78 --- packages/SystemUI/res/layout/notification_info.xml | 5 +++++ packages/SystemUI/res/values/strings.xml | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/res/layout/notification_info.xml b/packages/SystemUI/res/layout/notification_info.xml index 91353d7fb8ba3..863c1ccd7eaf8 100644 --- a/packages/SystemUI/res/layout/notification_info.xml +++ b/packages/SystemUI/res/layout/notification_info.xml @@ -178,6 +178,7 @@ asked for it --> android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" + android:maxWidth="100dp" style="@style/TextAppearance.NotificationInfo.Button"/> android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_alignParentEnd="true" + android:maxWidth="200dp" android:orientation="horizontal"> android:layout_centerVertical="true" android:layout_marginStart="@dimen/notification_guts_button_horizontal_spacing" android:paddingRight="24dp" + android:maxWidth="125dp" style="@style/TextAppearance.NotificationInfo.Button"/> android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" + android:maxWidth="75dp" android:layout_marginStart="@dimen/notification_guts_button_horizontal_spacing" style="@style/TextAppearance.NotificationInfo.Button"/> android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" + android:maxWidth="75dp" android:layout_marginStart="@dimen/notification_guts_button_horizontal_spacing" style="@style/TextAppearance.NotificationInfo.Button"/> diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml index 4905e572af1d8..d53c78543b651 100644 --- a/packages/SystemUI/res/values/strings.xml +++ b/packages/SystemUI/res/values/strings.xml @@ -1579,7 +1579,7 @@ You usually dismiss these notifications. \nKeep showing them? - + Done @@ -1588,7 +1588,7 @@ Stop notifications - + Deliver Silently