Fix text clipping of Notification actions, when the system font size is at maximum

Fixes the visually clipped notification action text, when the Accessibility - Display size and text - font size is at its maximum(2.0 scale).

Test: Manual.
Go to Settings > Accessibility > Display size and text. Adjust the "Font size" to the biggest.
Post a high-priority notification with reply button.
The HUN's reply button text shouldn't be clipped.
Then open the Shade. The notification's reply button text shouldn't be clipped.
Bug: 273401782
Bug: 273356442

Change-Id: I7eec0aa37770c7d0d3ee99c6e69f0218fcc1c864
This commit is contained in:
Yining Liu
2023-03-22 17:38:39 +00:00
parent c327762d9a
commit 9e3719915d
2 changed files with 4 additions and 2 deletions

View File

@@ -19,7 +19,8 @@
style="@android:style/NotificationAction"
android:id="@+id/action0"
android:layout_width="wrap_content"
android:layout_height="48dp"
android:layout_height="wrap_content"
android:minHeight="48dp"
android:layout_gravity="center"
android:gravity="start|center_vertical"
android:layout_marginStart="4dp"

View File

@@ -36,7 +36,8 @@
android:id="@+id/actions"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="@dimen/notification_action_list_height"
android:layout_height="wrap_content"
android:minHeight="@dimen/notification_action_list_height"
android:orientation="horizontal"
android:gravity="center_vertical"
android:visibility="gone"