diff options
| author | 2018-07-02 19:36:30 +0000 | |
|---|---|---|
| committer | 2018-07-02 19:36:30 +0000 | |
| commit | 6160cf72c66a395316419c1ce79eb809a89d7629 (patch) | |
| tree | 302e81890662796b275329c0ee98b9d80e81d55a | |
| parent | f574d538c1ce80a41df1894bb07c11d60d6c9d1a (diff) | |
| parent | eb7dbd5250d7664c7290e2b56a7495a604f5d8e9 (diff) | |
Merge "Fix QS peek animation from ACTION_DOWN"
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java index a4e184b9fa7c..052e8e181d80 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java @@ -665,11 +665,15 @@ public class NotificationStackScrollLayout extends ViewGroup int width = MeasureSpec.getSize(widthMeasureSpec); int childWidthSpec = MeasureSpec.makeMeasureSpec(width - mSidePaddings * 2, MeasureSpec.getMode(widthMeasureSpec)); + // Don't constrain the height of the children so we know how big they'd like to be + int childHeightSpec = MeasureSpec.makeMeasureSpec(MeasureSpec.getSize(heightMeasureSpec), + MeasureSpec.UNSPECIFIED); + // We need to measure all children even the GONE ones, such that the heights are calculated // correctly as they are used to calculate how many we can fit on the screen. final int size = getChildCount(); for (int i = 0; i < size; i++) { - measureChild(getChildAt(i), childWidthSpec, heightMeasureSpec); + measureChild(getChildAt(i), childWidthSpec, childHeightSpec); } } |