| | |
| | | if (UserConfigManage.getInstance().isZh()) { |
| | | mUrl = "https://china-gateway.hdlcontrol.com"; |
| | | viewBinding.regionTv.setText("HDL China"); |
| | | viewBinding.regionAccountTv.setText(getText(R.string.home_chinese_mainland)); |
| | | viewBinding.regionAccountNumberTv.setText("+86"); |
| | | } else { |
| | | viewBinding.regionTv.setText("HDL Bahrain"); |
| | | mUrl = "https://bahrain-gateway.hdlcontrol.com"; |
| | | viewBinding.regionAccountTv.setText(getText(R.string.iraq)); |
| | | viewBinding.regionAccountNumberTv.setText("+964"); |
| | | } |
| | | switchPhoneOrEmailStyleView(); |
| | | try { |
| | |
| | | } |
| | | HdlCommonLogic.getInstance().setSpan(viewBinding.registerPhoneVerificationTv, viewBinding.registerPhoneVerificationTv.getText().toString(), true, null); |
| | | HdlCommonLogic.getInstance().setSpan(viewBinding.registerMailVerificationTv, viewBinding.registerMailVerificationTv.getText().toString(), true, null); |
| | | |
| | | |
| | | } |
| | | |
| | | private void initEvent() { |
| | |
| | | CountryPickerFragment dialog = new CountryPickerFragment(this, new PickCountryCallback() { |
| | | @Override |
| | | public void onPick(Country country) { |
| | | if (country.flag != 0) viewBinding.regionAccountTv.setText(country.name); |
| | | if (country.flag != 0) viewBinding.regionAccountTv.setText(country.translate); |
| | | viewBinding.regionAccountNumberTv.setText("+" + country.code); |
| | | } |
| | | }); |