From 2eba83bea44c8c60a7c3451d26abbe12f2a2582b Mon Sep 17 00:00:00 2001 From: maning <154292322@qq.com> Date: Sat, 6 Aug 2022 21:41:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/maning/pswedittextlibrary/MNPasswordEditText.java | 3 --- 1 file changed, 3 deletions(-) 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;