diff options
| author | 2019-05-04 11:47:28 +0000 | |
|---|---|---|
| committer | 2019-05-04 11:47:28 +0000 | |
| commit | 3e0dc645cf63b69c63df7428fbe47c59a6f5cceb (patch) | |
| tree | 1e06a327f12bd732d444b8365907d56627c4de70 | |
| parent | ccc7759b1c5da68224d3498a8496f96735a7f19a (diff) | |
| parent | 3fd6e6f2784b429e492beef98bbc0850da3e45b6 (diff) | |
Merge "Set max alpha for dot color" into qt-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/bubbles/BadgedImageView.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/bubbles/BadgedImageView.java b/packages/SystemUI/src/com/android/systemui/bubbles/BadgedImageView.java index 98f446dea9b1..f15e8e47649c 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.graphics.Rect; import android.util.AttributeSet; import android.widget.ImageView; +import com.android.internal.graphics.ColorUtils; import com.android.systemui.R; /** @@ -101,7 +102,7 @@ public class BadgedImageView extends ImageView { * The colour to use for the dot. */ public void setDotColor(int color) { - mUpdateDotColor = color; + mUpdateDotColor = ColorUtils.setAlphaComponent(color, 255 /* alpha */); invalidate(); } |