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

Commit a38e272c authored by Lyn Han's avatar Lyn Han Committed by android-build-merger
Browse files

Merge "Set max alpha for dot color" into qt-dev am: 3e0dc645

am: 17e453e9

Change-Id: If6c9d8c65b4ab677d8825f6cc402a02b8e7de53b
parents e20b4f58 17e453e9
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();
    }