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

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) { public void loginClick(View v) {
ViewClicksAntiShake.clicksAntiShake(v, new ViewClicksAntiShake.ViewClicksCallBack() { if(v.getId()==R.id.btn_login){
@Override login();
public void onViewClicks() { }else{
int i = v.getId(); ViewClicksAntiShake.clicksAntiShake(v, new ViewClicksAntiShake.ViewClicksCallBack() {
if (i == R.id.btn_login) { @Override
//Intent intent = new Intent(LoginActivity.this, NewLiveActivity.class); public void onViewClicks() {
//startActivity(intent); int i = v.getId();
login(); if (i == R.id.btn_register) {
register();
} else if (i == R.id.btn_forget_pwd) {
forgetPwd();
} else if (i == R.id.btn_register) { } else if (i == R.id.btn_tip) {
register(); forwardTip();
} else if (i == R.id.btn_forget_pwd) { }
forgetPwd();
} else if (i == R.id.btn_tip) {
forwardTip();
} }
} });
}); }
} }
//注册 //注册