Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriy-budiyev committed Dec 6, 2018
1 parent 5214968 commit 92930fa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ protected void onDraw(@NonNull final Canvas canvas) {
final Path path = mPath;
if (frameCornersRadius > 0) {
final float normalizedRadius =
frameCornersRadius > frameCornersSize ? frameCornersSize : frameCornersRadius;
Math.min(frameCornersRadius, Math.max(frameCornersSize - 1, 0));
path.reset();
path.moveTo(left, top + normalizedRadius);
path.quadTo(left, top, left + normalizedRadius, top);
Expand Down Expand Up @@ -135,7 +135,7 @@ protected void onDraw(@NonNull final Canvas canvas) {
path.moveTo(left + frameCornersSize, bottom);
path.lineTo(left, bottom);
path.lineTo(left, bottom - frameCornersSize);
canvas.drawPath(path, mMaskPaint);
canvas.drawPath(path, mFramePaint);
}
}

Expand Down

0 comments on commit 92930fa

Please sign in to comment.