diff --git a/pswedittextlibrary/src/main/java/com/maning/pswedittextlibrary/MNPasswordEditText.java b/pswedittextlibrary/src/main/java/com/maning/pswedittextlibrary/MNPasswordEditText.java index f343a30..41e793c 100644 --- a/pswedittextlibrary/src/main/java/com/maning/pswedittextlibrary/MNPasswordEditText.java +++ b/pswedittextlibrary/src/main/java/com/maning/pswedittextlibrary/MNPasswordEditText.java @@ -365,9 +365,6 @@ protected void onDraw(Canvas canvas) { if (showCursor && mCursorFlag) { if (cursorHeight == 0 || cursorHeight > itemH) { cursorHeight = itemH * 50 / 100; - } - if(cursorWidth == 0){ - } Bitmap bitmap = drawableToBitmap(cursorDrawable, (int) cursorWidth, (int) cursorHeight); float cursorLeft = (itemW + margin) * currentIndex + itemW / 2 - cursorWidth / 2;