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

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

Merge "FixBug: Round corner gone when scroll to non-first item and drag to close" into pi-dev

parents 604064e8 c0ef5650
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -760,7 +760,9 @@ public class NotificationStackScrollLayout extends ViewGroup
    }

    private void updateClippingToTopRoundedCorner() {
        Float clipStart = (float) mTopPadding + mAmbientState.getExpandAnimationTopChange();
        Float clipStart = (float) mTopPadding
                                 + mStackTranslation
                                 + mAmbientState.getExpandAnimationTopChange();
        Float clipEnd = clipStart + mCornerRadius;
        boolean first = true;
        for (int i = 0; i < getChildCount(); i++) {
@@ -769,8 +771,7 @@ public class NotificationStackScrollLayout extends ViewGroup
                continue;
            }
            float start = child.getTranslationY();
            float end = start + Math.max(child.getActualHeight() - child.getClipBottomAmount(),
                    0);
            float end = start + child.getActualHeight();
            boolean clip = clipStart > start && clipStart < end
                    || clipEnd >= start && clipEnd <= end;
            clip &= !(first && mOwnScrollY == 0);