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

Commit bcc442d7 authored by Android Build Merger (Role)'s avatar Android Build Merger (Role) Committed by Android (Google) Code Review
Browse files

Merge "Merge "FixBug: Round corner gone when scroll to non-first item and drag...

Merge "Merge "FixBug: Round corner gone when scroll to non-first item and drag to close" into pi-dev am: d732ec69" into pi-dev-plus-aosp
parents 9f376da4 e1594c3a
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);