Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Commit

Permalink
Fix extra border draw when no border #115
Browse files Browse the repository at this point in the history
  • Loading branch information
vinc3m1 committed Aug 23, 2015
1 parent 993af5d commit d0a9bfd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,9 @@ public void draw(@NonNull Canvas canvas) {
}
} else {
canvas.drawRect(mDrawableRect, mBitmapPaint);
canvas.drawRect(mBorderRect, mBorderPaint);
if (mBorderWidth > 0) {
canvas.drawRect(mBorderRect, mBorderPaint);
}
}
}
}
Expand Down

0 comments on commit d0a9bfd

Please sign in to comment.