From 9d75ae662a0f9ab9bd3aa675cefcf70bbbc5da17 Mon Sep 17 00:00:00 2001 From: Roy Chou Date: Fri, 14 Jul 2023 04:31:31 +0000 Subject: 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 --- packages/SystemUI/res/xml/qs_header.xml | 1 + 1 file changed, 1 insertion(+) 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" -- cgit v1.2.3-59-g8ed1b