Chaser for ag/11973247 to wrap content

Otherwise, the ouput switcher chip will expand to fill the avaiable
space.

Fixes: 159708142
Test: manual - Connect headphones with short name. Look at player in QS.
Verify that chip wraps the text and isn't too wide.

Change-Id: I574762cc2d327fe7c55a3c3c6105d15dec55f7ca
This commit is contained in:
Robert Snoeberger
2020-06-26 16:59:40 -04:00
parent fd910278e9
commit b7a356f6da
2 changed files with 4 additions and 2 deletions

View File

@@ -42,10 +42,11 @@
<Constraint
android:id="@+id/media_seamless"
android:layout_width="0dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constrainedWidth="true"
app:layout_constraintWidth_min="60dp"
app:layout_constraintStart_toEndOf="@id/center_vertical_guideline"
app:layout_constraintHorizontal_bias="1"

View File

@@ -42,12 +42,13 @@
<Constraint
android:id="@+id/media_seamless"
android:layout_width="0dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toEndOf="@id/center_vertical_guideline"
app:layout_constraintHorizontal_bias="1"
app:layout_constrainedWidth="true"
app:layout_constraintWidth_min="60dp"
android:layout_marginTop="@dimen/qs_media_panel_outer_padding"
android:layout_marginEnd="@dimen/qs_media_panel_outer_padding"