| | |
| | | * 初始化界面 |
| | | */ |
| | | private void initView() { |
| | | if (UserConfigManage.getInstance().isZh()) { |
| | | viewBinding.regionAccountTv.setText(getText(R.string.home_chinese_mainland)); |
| | | viewBinding.regionAccountNumberTv.setText("+86"); |
| | | } else { |
| | | viewBinding.regionAccountTv.setText(getText(R.string.iraq)); |
| | | viewBinding.regionAccountNumberTv.setText("+964"); |
| | | } |
| | | switchPhoneOrMailView(); |
| | | try { |
| | | Country.load(this); |
| | |
| | | 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); |
| | | } |
| | | }); |