Skip to content

Commit

Permalink
Fix border-stroke drawing after resetting border-radius
Browse files Browse the repository at this point in the history
  • Loading branch information
IjzerenHein authored Mar 20, 2020
1 parent f2ffa03 commit 8670f52
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -998,10 +998,11 @@ private static int fastBorderCompatibleColorOrZero(
}

private void drawRectangularBackgroundWithBorders(Canvas canvas) {
mPaint.setStyle(Paint.Style.FILL);

int useColor = ColorUtil.multiplyColorAlpha(mColor, mAlpha);
if (Color.alpha(useColor) != 0) { // color is not transparent
mPaint.setColor(useColor);
mPaint.setStyle(Paint.Style.FILL);
canvas.drawRect(getBounds(), mPaint);
}

Expand Down

0 comments on commit 8670f52

Please sign in to comment.