From 00433149c5fa4a2d932be01b809e179023f13e26 Mon Sep 17 00:00:00 2001 From: Yining Liu Date: Fri, 10 Mar 2023 00:09:39 +0000 Subject: [PATCH] Fix MediaStyle Notification clipping text when the system font size is at maximum Fixes the visually cut off text inside MediaStyle Notification 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 MediaStyle Notification, then open the Shade. The MediaStyle Notification's media_seamless_button texts shouldn't be cut off. Bug: 264009793 Bug: 273401782 Change-Id: I4d8a973d76fba5c6e519f7e152ef762aa9b31209 --- packages/SystemUI/res/layout/media_session_view.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/res/layout/media_session_view.xml b/packages/SystemUI/res/layout/media_session_view.xml index 9d914197c05a9..85b6e8dc12b36 100644 --- a/packages/SystemUI/res/layout/media_session_view.xml +++ b/packages/SystemUI/res/layout/media_session_view.xml @@ -97,7 +97,8 @@ android:background="@drawable/qs_media_light_source" android:forceHasOverlappingRendering="false" android:layout_width="wrap_content" - android:layout_height="@dimen/min_clickable_item_size" + android:minHeight="@dimen/min_clickable_item_size" + android:layout_height="wrap_content" android:layout_marginStart="@dimen/qs_center_guideline_padding" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="parent"