Merge "Fix faint ripple" into tm-dev am: 973fc119c5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17251543 Change-Id: If56aa614628b37e6bd818f523188df194c1af1d8
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user