diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2019-04-09 16:29:53 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-04-09 16:29:53 +0000 |
commit | a29d4340068943bc30508727d3d81da6f971e4cd (patch) | |
tree | a9c00f6e93ff7ac92cc4020da77c218186483e18 | |
parent | 773a231fc6f4930fe445a974a62586dab54dfc09 (diff) | |
parent | 9ad240c0583c98c7a3eba607678ea03fe194bb54 (diff) |
Merge "Tweaked the rounded corners when turning off" into qt-dev
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java index d11eab7bb895..562e535eb42a 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java @@ -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); } |