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

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

View File

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