去掉手机号登录页面登录按钮防抖

This commit is contained in:
Martin 2024-10-14 13:16:03 +08:00
parent 948dfe974c
commit ad895b54d1

View File

@ -168,26 +168,24 @@ public class LoginActivity extends AbsActivity {
public void loginClick(View v) {
ViewClicksAntiShake.clicksAntiShake(v, new ViewClicksAntiShake.ViewClicksCallBack() {
@Override
public void onViewClicks() {
int i = v.getId();
if (i == R.id.btn_login) {
//Intent intent = new Intent(LoginActivity.this, NewLiveActivity.class);
//startActivity(intent);
login();
if(v.getId()==R.id.btn_login){
login();
}else{
ViewClicksAntiShake.clicksAntiShake(v, new ViewClicksAntiShake.ViewClicksCallBack() {
@Override
public void onViewClicks() {
int i = v.getId();
if (i == R.id.btn_register) {
register();
} else if (i == R.id.btn_forget_pwd) {
forgetPwd();
} else if (i == R.id.btn_register) {
register();
} else if (i == R.id.btn_forget_pwd) {
forgetPwd();
} else if (i == R.id.btn_tip) {
forwardTip();
} else if (i == R.id.btn_tip) {
forwardTip();
}
}
}
});
});
}
}
//注册