Fix NotificationTopLineView clipping text when the font size is at maximum

Fixes the visually cut off text when the Accessibility - Display  size and text - font size is at its maximum.

Test: Manual.
Go to Settings > Accessibility > Display size and text. Adjust the "Font size" to the biggest.
Post a Message Notification, and a BigText Notification. Open the Shade.
The collapsed notifications' title texts shouldn't be cut off.
Bug: 264009793
Bug: 273401782
Change-Id: I9694e448d235b152117ff00d29597c66b64c6733
This commit is contained in:
Yining Liu
2023-03-08 21:18:46 +00:00
parent d521f28559
commit ee9f52586e
2 changed files with 4 additions and 2 deletions

View File

@@ -79,7 +79,8 @@
<NotificationTopLineView
android:id="@+id/notification_top_line"
android:layout_width="wrap_content"
android:layout_height="@dimen/notification_headerless_line_height"
android:layout_height="wrap_content"
android:minHeight="@dimen/notification_headerless_line_height"
android:clipChildren="false"
android:theme="@style/Theme.DeviceDefault.Notification"
>

View File

@@ -102,7 +102,8 @@
<NotificationTopLineView
android:id="@+id/notification_top_line"
android:layout_width="wrap_content"
android:layout_height="@dimen/notification_headerless_line_height"
android:layout_height="wrap_content"
android:minHeight="@dimen/notification_headerless_line_height"
android:layout_marginStart="@dimen/notification_content_margin_start"
android:clipChildren="false"
android:theme="@style/Theme.DeviceDefault.Notification"