Fix faint ripple

Fixes: 224547325
Test: manual
Change-Id: I9c1da7a5065dca9620ebc1f3d88d5525f0d3527c
This commit is contained in:
Jay Aliomer
2022-03-18 01:32:15 -04:00
parent 781829d9a6
commit 475648ae02

View File

@@ -1000,7 +1000,7 @@ public class RippleDrawable extends LayerDrawable {
}
private int clampAlpha(@ColorInt int color) {
if (Color.alpha(color) > 128) {
if (Color.alpha(color) < 128) {
return (color & 0x00FFFFFF) | 0x80000000;
}
return color;