Skip to content

Commit

Permalink
Fixed 1px border is drawn even when border width is set to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlLee committed Apr 22, 2014
1 parent c1b3705 commit fc36cfc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ protected void onDraw(Canvas canvas) {
}

canvas.drawCircle(getWidth() / 2, getHeight() / 2, mDrawableRadius, mBitmapPaint);
canvas.drawCircle(getWidth() / 2, getHeight() / 2, mBorderRadius, mBorderPaint);
if(mBorderWidth != 0){
canvas.drawCircle(getWidth() / 2, getHeight() / 2, mBorderRadius, mBorderPaint);
}
}

@Override
Expand Down

0 comments on commit fc36cfc

Please sign in to comment.