注册和登录放开国际区号选择

This commit is contained in:
guozhen
2024-12-13 15:46:28 +08:00
committed by xuhuixiang
parent cb05dda558
commit 1439e4c23c
8 changed files with 40 additions and 48 deletions

View File

@@ -95,22 +95,22 @@ public class PhoneLoginActivity extends BaseActivity {
setPrivacyContent(activityWelcomeBinding.mobileTipsTv);
countryBean = DataUtils.getLocCountry(PhoneLoginActivity.this);
// changeArea();
// activityWelcomeBinding.areaTv.setOnClickListener(new View.OnClickListener() {
// @Override
// public void onClick(View v) {
// SelectCountryDialog selectCountryDialog = new SelectCountryDialog(PhoneLoginActivity.this);
// selectCountryDialog.setOnToVipListener(new SelectCountryDialog.OnToTypeListener() {
// @Override
// public void toType(CountryBean type) {
// countryBean = type;
// changeArea();
// DataUtils.set(PhoneLoginActivity.this, IMUIKitConfig.LOC_COUNTRY_CODE, type.getAreaCodeName());
// }
// });
// selectCountryDialog.show();
// }
// });
changeArea();
activityWelcomeBinding.areaTv.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
SelectCountryDialog selectCountryDialog = new SelectCountryDialog(PhoneLoginActivity.this);
selectCountryDialog.setOnToVipListener(new SelectCountryDialog.OnToTypeListener() {
@Override
public void toType(CountryBean type) {
countryBean = type;
changeArea();
DataUtils.set(PhoneLoginActivity.this, IMUIKitConfig.LOC_COUNTRY_CODE, type.getAreaCodeName());
}
});
selectCountryDialog.show();
}
});
activityWelcomeBinding.nextIv.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {

View File

@@ -157,19 +157,19 @@ public class RegisterActivity extends BaseActivity {
setPrivacyContent(activityWelcomeBinding.mobileTipsTv);
countryBean = DataUtils.getLocCountry(RegisterActivity.this);
// changeArea();
// activityWelcomeBinding.areaTv.setOnClickListener(v -> {
// SelectCountryDialog selectCountryDialog = new SelectCountryDialog(RegisterActivity.this);
// selectCountryDialog.setOnToVipListener(new SelectCountryDialog.OnToTypeListener() {
// @Override
// public void toType(CountryBean type) {
// countryBean = type;
// changeArea();
// DataUtils.set(RegisterActivity.this, IMUIKitConfig.LOC_COUNTRY_CODE, type.getAreaCodeName());
// }
// });
// selectCountryDialog.show();
// });
changeArea();
activityWelcomeBinding.areaTv.setOnClickListener(v -> {
SelectCountryDialog selectCountryDialog = new SelectCountryDialog(RegisterActivity.this);
selectCountryDialog.setOnToVipListener(new SelectCountryDialog.OnToTypeListener() {
@Override
public void toType(CountryBean type) {
countryBean = type;
changeArea();
DataUtils.set(RegisterActivity.this, IMUIKitConfig.LOC_COUNTRY_CODE, type.getAreaCodeName());
}
});
selectCountryDialog.show();
});
activityWelcomeBinding.nextIv.setOnClickListener(v -> {
if(lastTime>0){
if(System.currentTimeMillis()-lastTime<2000){