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

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

Merge "Tweaked the rounded corners when turning off" into qt-dev

parents 773a231f 9ad240c0
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -401,7 +401,11 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd
        @Override
        public void getOutline(View view, Outline outline) {
            if (mAmbientState.isDarkAtAll() || !mShowDarkShelf) {
                outline.setRoundRect(mBackgroundAnimationRect, mCornerRadius);
                float xProgress = mDarkXInterpolator.getInterpolation(
                        (1 - mLinearDarkAmount) * mBackgroundXFactor);
                outline.setRoundRect(mBackgroundAnimationRect,
                        MathUtils.lerp(mCornerRadius / 2.0f, mCornerRadius,
                                xProgress));
            } else {
                ViewOutlineProvider.BACKGROUND.getOutline(view, outline);
            }