Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6160cf72 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix QS peek animation from ACTION_DOWN"

parents f574d538 eb7dbd52
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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);
        }
    }