Fix collapsed CallStyle Notification content text clipping when the system font size is at maximum

Fixes the visually clipped content text of collapsed CallStyle 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 CallStyle Notification and an Inbox Notification with Notify2, then open the Shade. The collapsed CallStyle Notification's content text shouldn't be clipped.
Bug: 264009793
Bug: 273401782
Change-Id: Ic514096b7c48b4929df252545fc0f002cb0e8828
This commit is contained in:
Yining Liu
2023-03-13 22:42:45 +00:00
parent 57341d0d4b
commit 74ab3fc207

View File

@@ -29,7 +29,8 @@
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="88dp"
android:layout_height="wrap_content"
android:minHeight="88dp"
android:orientation="horizontal"
>
@@ -41,6 +42,7 @@
android:layout_marginStart="@dimen/conversation_content_start"
android:orientation="vertical"
android:minHeight="68dp"
android:paddingBottom="@dimen/notification_headerless_margin_twoline"
>
<include
@@ -49,7 +51,10 @@
android:layout_height="wrap_content"
/>
<include layout="@layout/notification_template_text" />
<include layout="@layout/notification_template_text"
android:layout_height="wrap_content"
android:minHeight="@dimen/notification_text_height"
/>
</LinearLayout>