From cd9f8719bc3146f311574fbbd063434a33d91403 Mon Sep 17 00:00:00 2001 From: Sreyas Date: Mon, 8 Mar 2021 19:48:17 -0800 Subject: [PATCH] Let chips take full screen width. Bug: 180917948 Test: Manual Change-Id: I1b8602a567c4906fb52fa686092d0bf16b1f64d9 --- quickstep/src/com/android/quickstep/views/TaskView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/views/TaskView.java b/quickstep/src/com/android/quickstep/views/TaskView.java index 88545c6436..6516ee5409 100644 --- a/quickstep/src/com/android/quickstep/views/TaskView.java +++ b/quickstep/src/com/android/quickstep/views/TaskView.java @@ -769,7 +769,7 @@ public class TaskView extends FrameLayout implements PageCallbacks, Reusable { } 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);