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

Unverified Commit 8d72d9a1 authored by SagarMakhar's avatar SagarMakhar Committed by Michael Bestas
Browse files

Apply monet to fingerprint authentication ripple animation

Change-Id: I15d0f9fee13647062c651219b527e01a539b6909
parent 38aaf134
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ import android.view.View
import android.view.animation.PathInterpolator
import com.android.internal.graphics.ColorUtils
import com.android.app.animation.Interpolators
import com.android.settingslib.Utils
import com.android.systemui.surfaceeffects.ripple.RippleShader

private const val RIPPLE_SPARKLE_STRENGTH: Float = 0.3f
@@ -89,7 +90,8 @@ class AuthRippleView(context: Context?, attrs: AttributeSet?) : View(context, at
        rippleShader.sparkleStrength = RIPPLE_SPARKLE_STRENGTH
        updateRippleFadeParams()
        ripplePaint.shader = rippleShader
        setLockScreenColor(0xffffffff.toInt()) // default color
        setLockScreenColor(Utils.getColorAttr(context,
                android.R.attr.colorAccent).defaultColor) // default color

        dwellShader.color = 0xffffffff.toInt() // default color
        dwellShader.progress = 0f