From c1e8438ef1599c9b29cb95c737a5cb9add2f157b Mon Sep 17 00:00:00 2001 From: Beth Thibodeau Date: Thu, 10 Jun 2021 18:18:39 -0400 Subject: [PATCH] Fix issues with media control size - Adjust padding for long press buttons, which was causing controls to be too tall - Increase album art size for recommendations, which were too short after the long press padding was fixed - Allow output switcher to expand to fit larger text sizes - Update output switcher text style and sizes Fixes: 190714400 Fixes: 189189771 Fixes: 190719285 Test: visual Change-Id: I93562ecf9ec2463b8c1e663da8b0b271630c2ee5 --- .../layout/media_smartspace_recommendations.xml | 8 ++++---- packages/SystemUI/res/layout/media_view.xml | 16 +++++++++------- packages/SystemUI/res/values/dimens.xml | 4 ++-- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/packages/SystemUI/res/layout/media_smartspace_recommendations.xml b/packages/SystemUI/res/layout/media_smartspace_recommendations.xml index 9a575893458d5..2ffc16b35b9f3 100644 --- a/packages/SystemUI/res/layout/media_smartspace_recommendations.xml +++ b/packages/SystemUI/res/layout/media_smartspace_recommendations.xml @@ -127,7 +127,7 @@ @@ -176,7 +176,6 @@ android:layout_marginStart="@dimen/qs_media_info_spacing" android:layout_marginEnd="@dimen/qs_media_info_spacing" android:layout_marginBottom="@dimen/qs_media_padding" - android:layout_marginTop="6dp" app:layout_constrainedWidth="true" app:layout_constraintWidth_min="48dp" app:layout_constraintHeight_min="48dp" @@ -188,6 +187,7 @@ @@ -200,7 +200,6 @@ android:layout_marginStart="@dimen/qs_media_info_spacing" android:layout_marginEnd="@dimen/qs_media_padding" android:layout_marginBottom="@dimen/qs_media_padding" - android:layout_marginTop="6dp" app:layout_constrainedWidth="true" app:layout_constraintWidth_min="48dp" app:layout_constraintHeight_min="48dp" @@ -212,6 +211,7 @@ diff --git a/packages/SystemUI/res/layout/media_view.xml b/packages/SystemUI/res/layout/media_view.xml index 10bdaaae66343..c341f73933189 100644 --- a/packages/SystemUI/res/layout/media_view.xml +++ b/packages/SystemUI/res/layout/media_view.xml @@ -135,7 +135,8 @@ android:forceHasOverlappingRendering="false"> + android:textSize="12sp" + android:lineHeight="16sp" /> @@ -215,7 +217,7 @@ @@ -264,7 +266,6 @@ android:layout_marginStart="@dimen/qs_media_info_spacing" android:layout_marginEnd="@dimen/qs_media_info_spacing" android:layout_marginBottom="@dimen/qs_media_padding" - android:layout_marginTop="6dp" app:layout_constrainedWidth="true" app:layout_constraintWidth_min="48dp" app:layout_constraintHeight_min="48dp" @@ -276,6 +277,7 @@ @@ -288,7 +290,6 @@ android:layout_marginStart="@dimen/qs_media_info_spacing" android:layout_marginEnd="@dimen/qs_media_padding" android:layout_marginBottom="@dimen/qs_media_padding" - android:layout_marginTop="6dp" app:layout_constrainedWidth="true" app:layout_constraintWidth_min="48dp" app:layout_constraintHeight_min="48dp" @@ -300,6 +301,7 @@ diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml index 0022039a78ca3..551f246dbacbe 100644 --- a/packages/SystemUI/res/values/dimens.xml +++ b/packages/SystemUI/res/values/dimens.xml @@ -1282,7 +1282,7 @@ 4dp 8dp 24dp - 16dp + 12dp @dimen/qs_seamless_icon_size 20dp 22dp @@ -1292,7 +1292,7 @@ 36dp - 66dp + 72dp 80dp 8dp 16sp