Fix collapsed OldMediaStyle Notification title text clipping when the system font size is at maximum

Fixes the visually clipped title text of collapsed OldMediaStyle Notifications, 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 OldMediaStyle Notification and an Inbox Notification with Notify2, then open the Shade. The collapsed OldMediaStyle Notification's title text shouldn't be clipped.
Bug: 264009793
Bug: 273401782
Change-Id: I966465c77c502cb26beed4a0c18ccac7dd17a516
This commit is contained in:
Yining Liu
2023-03-14 04:55:02 +00:00
parent 74ab3fc207
commit 458dba0c7e

View File

@@ -19,7 +19,8 @@
android:id="@+id/status_bar_latest_event_content"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="@dimen/notification_min_height"
android:layout_height="wrap_content"
android:minHeight="@dimen/notification_min_height"
android:tag="media"
>
@@ -77,7 +78,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"
>