diff options
| author | 2023-03-14 04:55:02 +0000 | |
|---|---|---|
| committer | 2023-03-14 05:37:57 +0000 | |
| commit | 458dba0c7e1b83e54088a6b8cd3e0887672007a7 (patch) | |
| tree | d6b79d9caab89b6ed68842e735ea8972a36623a4 | |
| parent | 74ab3fc20747a5f975167c5fd2eb1994a57a3a32 (diff) | |
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
| -rw-r--r-- | core/res/res/layout/notification_template_material_media.xml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/res/res/layout/notification_template_material_media.xml b/core/res/res/layout/notification_template_material_media.xml index 95ddc2e4ea79..df32d30918c8 100644 --- a/core/res/res/layout/notification_template_material_media.xml +++ b/core/res/res/layout/notification_template_material_media.xml @@ -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" > |