Merge "Let chips take full screen width." into sc-dev

This commit is contained in:
Sreyas Rangaraju authored and Android (Google) Code Review committed 2021-03-11 20:20:41 +00:00
commit 06b41019ef
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);