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

Commit 94e790bd authored by Yein Jo's avatar Yein Jo Committed by Automerger Merge Worker
Browse files

Merge "Fix ripple opacity to match the previous config." into tm-qpr-dev am:...

Merge "Fix ripple opacity to match the previous config." into tm-qpr-dev am: 6e3271fd am: f20dcf55

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



Change-Id: I1874bb14b2afb0b1df4c9fe5c83a4db343e8a713
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 4554dc57 f20dcf55
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -27,6 +27,6 @@ data class RippleAnimationConfig(
    companion object {
        const val RIPPLE_SPARKLE_STRENGTH: Float = 0.3f
        const val RIPPLE_DEFAULT_COLOR: Int = 0xffffffff.toInt()
        const val RIPPLE_DEFAULT_ALPHA: Int = 45 // full opacity is 255.
        const val RIPPLE_DEFAULT_ALPHA: Int = 115 // full opacity is 255.
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -111,7 +111,7 @@ open class RippleView(context: Context?, attrs: AttributeSet?) : View(context, a
    /**
     * Set the color to be used for the ripple.
     *
     * The alpha value of the color will be applied to the ripple. The alpha range is [0-100].
     * The alpha value of the color will be applied to the ripple. The alpha range is [0-255].
     */
    fun setColor(color: Int, alpha: Int = RippleAnimationConfig.RIPPLE_DEFAULT_ALPHA) {
        rippleShader.color = ColorUtils.setAlphaComponent(color, alpha)