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

Commit 426c026b authored by Selim Cinek's avatar Selim Cinek Committed by android-build-merger
Browse files

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

am: a29d4340

Change-Id: Ib29a21478def54555f16af85b606835f53245749
parents 2f3cf66d a29d4340
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);
            }