fix: 修复回退错位问题
This commit is contained in:
@@ -86,12 +86,6 @@ public class VerificationCodeInput extends ViewGroup {
|
||||
@Override
|
||||
public void afterTextChanged(Editable s) {
|
||||
if (s.length() == 0) {
|
||||
int id = currentFocusChild.getId();
|
||||
if (id > 0) {
|
||||
EditText editText = (EditText) getChildAt((currentFocusChild.getId() - 1) % box);
|
||||
editText.requestFocus();
|
||||
|
||||
}
|
||||
} else {
|
||||
checkAndCommit();
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#FFFFFF" />
|
||||
<corners android:radius="3dip" />
|
||||
<corners android:radius="2dip" />
|
||||
<stroke
|
||||
android:width="1dip"
|
||||
android:color="#ffee33" />
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#FaFafa" />
|
||||
<corners android:radius="3dip" />
|
||||
<corners android:radius="2dip" />
|
||||
<stroke
|
||||
android:width="1dip"
|
||||
android:color="#BDC7D8" />
|
||||
|
||||
Reference in New Issue
Block a user