Skip to content

Commit 42acbfe

Browse files
committed
update
1 parent e8e4bf6 commit 42acbfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/java/com/zhangym/customview/VerificationCodeView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ protected void onDraw(Canvas canvas) {
588588
/*
589589
绘制文本
590590
*/
591-
if (mVerificationText != null) {
591+
if (mVerificationText != null && mVerificationText.length() > 0) {
592592
mPaint.setStyle(Paint.Style.FILL_AND_STROKE);
593593
// 设置文本是否加粗
594594
if (isTextBold) {

0 commit comments

Comments
 (0)