diff options
| author | 2023-07-14 04:31:31 +0000 | |
|---|---|---|
| committer | 2023-07-28 07:41:05 +0000 | |
| commit | 9d75ae662a0f9ab9bd3aa675cefcf70bbbc5da17 (patch) | |
| tree | 292c620abc4e5ef4d9efebd5ea338b290f7db62d | |
| parent | 3cae3974c5bd527ff82aefd505fde6412d60b0b8 (diff) | |
fix(non linear font scaling): date textview might be covered by system icons in qs header
As b/291168601, when the sum of date textview width and system icons container width is larger than the qs header width, date textview would be covered by system icons. Therefore, in xml/qs_header we add the constraint between the date textview and the system icons to prevent the ui broken.
Bug: 291168601
Test: manually - attached screenshots in bug
atest CombinedShadeHeaderConstraintsTest
Change-Id: Ifd13da3bd3e7893bc79b0114fce972b039261364
| -rw-r--r-- | packages/SystemUI/res/xml/qs_header.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/SystemUI/res/xml/qs_header.xml b/packages/SystemUI/res/xml/qs_header.xml index 7b4282f049b8..427fd87c640a 100644 --- a/packages/SystemUI/res/xml/qs_header.xml +++ b/packages/SystemUI/res/xml/qs_header.xml @@ -83,6 +83,7 @@ android:layout_width="0dp" android:layout_height="@dimen/new_qs_header_non_clickable_element_height" app:layout_constraintWidth_default="wrap" + app:layout_constraintStart_toEndOf="@id/date" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="@id/date" app:layout_constraintBottom_toBottomOf="@id/date" |