Let chips take full screen width.

Bug: 180917948
Test: Manual
Change-Id: I1b8602a567c4906fb52fa686092d0bf16b1f64d9
This commit is contained in:
Sreyas committed 2021-03-10 10:00:26 -08:00
1 parent 2b860d29ca
commit cd9f8719bc
1 file changed
+1 -1
@@ -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);