commit | 9ad240c0583c98c7a3eba607678ea03fe194bb54 | [log] [tgz] |
---|---|---|
author | Selim Cinek <cinek@google.com> | Mon Apr 08 19:07:15 2019 -0700 |
committer | Selim Cinek <cinek@google.com> | Mon Apr 08 19:07:15 2019 -0700 |
tree | 34195a6a15e5f6db56fd327dcda04327681cbd6b | |
parent | cbf999bd4f4ace815a338d74eb8f918907c1a133 [diff] |
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
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 bbb17c2..7a439c0 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
@@ -400,7 +400,11 @@ @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); }