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
This commit is contained in:
Roy Chou
2023-07-14 04:31:31 +00:00
parent 3cae3974c5
commit 9d75ae662a

View File

@@ -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"