注册和登录放开国际区号选择
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user