commit | cd9f8719bc3146f311574fbbd063434a33d91403 | [log] [tgz] |
---|---|---|
author | Sreyas <sreyasr@google.com> | Mon Mar 08 19:48:17 2021 -0800 |
committer | Sreyas <sreyasr@google.com> | Wed Mar 10 10:00:26 2021 -0800 |
tree | 2c0f1be0960a37d256ee831ccd076939ee8685be | |
parent | 2b860d29cac49caf01693b04ff4b9f98844f2ce2 [diff] |
Let chips take full screen width. Bug: 180917948 Test: Manual Change-Id: I1b8602a567c4906fb52fa686092d0bf16b1f64d9
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);