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

Commit 9ad240c0 authored by Selim Cinek's avatar Selim Cinek
Browse files

Tweaked the rounded corners when turning off

The rounded corners now decrease with the x of the turn off
animation to give it a slightly less blobby feel.

Fixes: 129771535
Test: manual, turn on and off the screen
Change-Id: I1756749198632b05ee358b565d99b765a4950042
parent cbf999bd
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -400,7 +400,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);
            }