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

Commit 3fd6e6f2 authored by Lyn Han's avatar Lyn Han
Browse files

Set max alpha for dot color

Bug: 130347467
Test: manual
Change-Id: I8e922549cc5875508fe3f50aecb7139070794e83
parent d20d4b1d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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();
    }