From 3418e49eb9689f3a8649914fdf93a1ce80fca76c Mon Sep 17 00:00:00 2001 From: Shan Huang Date: Wed, 11 Aug 2021 00:13:33 +0000 Subject: [PATCH] Fix hard edge on charging ripple. Bug: 196132025 Test: Manual Change-Id: I12eed187fcffc352de5637142b3189c159b3f097 --- .../android/systemui/statusbar/charging/ChargingRippleView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/charging/ChargingRippleView.kt b/packages/SystemUI/src/com/android/systemui/statusbar/charging/ChargingRippleView.kt index 4a467ce3c987b..d01fc93ee84c0 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/charging/ChargingRippleView.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/charging/ChargingRippleView.kt @@ -104,7 +104,7 @@ class ChargingRippleView(context: Context?, attrs: AttributeSet?) : View(context // the active effect area. Values here should be kept in sync with the // animation implementation in the ripple shader. val maskRadius = (1 - (1 - rippleShader.progress) * (1 - rippleShader.progress) * - (1 - rippleShader.progress)) * radius * 1.5f + (1 - rippleShader.progress)) * radius * 2 canvas?.drawCircle(origin.x, origin.y, maskRadius, ripplePaint) } }