From 458dba0c7e1b83e54088a6b8cd3e0887672007a7 Mon Sep 17 00:00:00 2001 From: Yining Liu Date: Tue, 14 Mar 2023 04:55:02 +0000 Subject: [PATCH] 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 --- .../res/res/layout/notification_template_material_media.xml | 6 ++++-- 1 file 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 95ddc2e4ea796..df32d30918c89 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 @@