fix bug 清空输入框时,光标问题
This commit is contained in:
@@ -431,7 +431,11 @@ public class VerificationCodeView extends LinearLayout implements TextWatcher, V
|
|||||||
editText = (EditText) getChildAt(i);
|
editText = (EditText) getChildAt(i);
|
||||||
editText.setText("");
|
editText.setText("");
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
editText.setCursorVisible(true);
|
if (cursorVisible) {
|
||||||
|
editText.setCursorVisible(true);
|
||||||
|
} else {
|
||||||
|
editText.setCursorVisible(false);
|
||||||
|
}
|
||||||
editText.requestFocus();
|
editText.requestFocus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user