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

Commit ecf934d6 authored by Shan Huang's avatar Shan Huang Committed by Automerger Merge Worker
Browse files

Merge "Fix hard edge on charging ripple." into sc-qpr1-dev am: 5c3bcace

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15523929

Change-Id: I878288c65ff205bc3b604cb6a7c613e3e9f4227b
parents 59791c60 5c3bcace
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)
    }
}