Merge "Let chips take full screen width." into sc-dev am: 06b41019ef

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13810241

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I59ab14a839fb6b3888c7db8cc3ffbe414722c2b2
diff --git a/quickstep/src/com/android/quickstep/views/TaskView.java b/quickstep/src/com/android/quickstep/views/TaskView.java
index 88545c6..6516ee5 100644
--- a/quickstep/src/com/android/quickstep/views/TaskView.java
+++ b/quickstep/src/com/android/quickstep/views/TaskView.java
@@ -769,7 +769,7 @@
         }
         if (view != null) {
             mContextualChipWrapper = view;
-            LayoutParams layoutParams = new LayoutParams(LayoutParams.MATCH_PARENT,
+            LayoutParams layoutParams = new LayoutParams(((View) getParent()).getMeasuredWidth(),
                     LayoutParams.WRAP_CONTENT);
             layoutParams.gravity = BOTTOM | CENTER_HORIZONTAL;
             int expectedChipHeight = getExpectedViewHeight(view);