Fix text clipping of NotificationVanishingFrameLayout, when the system font size is at maximum

Fixes the visually clipped notification content text inside NotificationVanishingFrameLayout, when the Accessibility - Display size and text - font size is at its maximum(2.0 scale).

Test: Manual, Go to Settings > Accessibility > Display size and text. Adjust the "Font size" to the biggest. Post an Account update alert notification, then open the Shade. The notification's content text shouldn't be clipped.
Bug: 273401782
Change-Id: I2fcaae6a68692a4bc19eedf4cdd84d3a0716663b
This commit is contained in:
Yining Liu
2023-03-16 22:48:41 +00:00
parent d54d2d4d86
commit a43e4cb45d

View File

@@ -116,7 +116,8 @@
<com.android.internal.widget.NotificationVanishingFrameLayout
android:layout_width="match_parent"
android:layout_height="@dimen/notification_headerless_line_height"
android:layout_height="wrap_content"
android:minHeight="@dimen/notification_headerless_line_height"
>
<!-- This is the simplest way to keep this text vertically centered without
gravity="center_vertical" which causes jumpiness in expansion animations. -->