commit | 3fd6e6f2784b429e492beef98bbc0850da3e45b6 | [log] [tgz] |
---|---|---|
author | Lyn Han <lynhan@google.com> | Fri May 03 17:46:23 2019 -0700 |
committer | Lyn Han <lynhan@google.com> | Fri May 03 17:48:26 2019 -0700 |
tree | 51ca4ddcdf7a1cc32485525f57817133428aac0d | |
parent | d20d4b1d65825f97dda5de881c6856d54b69f095 [diff] [blame] |
Set max alpha for dot color Bug: 130347467 Test: manual Change-Id: I8e922549cc5875508fe3f50aecb7139070794e83
diff --git a/packages/SystemUI/src/com/android/systemui/bubbles/BadgedImageView.java b/packages/SystemUI/src/com/android/systemui/bubbles/BadgedImageView.java index 98f446d..f15e8e4 100644 --- a/packages/SystemUI/src/com/android/systemui/bubbles/BadgedImageView.java +++ b/packages/SystemUI/src/com/android/systemui/bubbles/BadgedImageView.java
@@ -23,6 +23,7 @@ import android.util.AttributeSet; import android.widget.ImageView; +import com.android.internal.graphics.ColorUtils; import com.android.systemui.R; /** @@ -101,7 +102,7 @@ * The colour to use for the dot. */ public void setDotColor(int color) { - mUpdateDotColor = color; + mUpdateDotColor = ColorUtils.setAlphaComponent(color, 255 /* alpha */); invalidate(); }