From 194987595d55583e7ac89fb014880c90a9edeebf Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期五, 29 十一月 2024 19:14:04 +0800 Subject: [PATCH] 2024年11月29日19:14:02 --- app/src/main/java/com/hdl/photovoltaic/ui/me/BindPhoneActivity.java | 15 ++++++--------- 1 files changed, 6 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/com/hdl/photovoltaic/ui/me/BindPhoneActivity.java b/app/src/main/java/com/hdl/photovoltaic/ui/me/BindPhoneActivity.java index 1e1d153..c972828 100644 --- a/app/src/main/java/com/hdl/photovoltaic/ui/me/BindPhoneActivity.java +++ b/app/src/main/java/com/hdl/photovoltaic/ui/me/BindPhoneActivity.java @@ -45,7 +45,7 @@ private void initEvent() { - viewBinding.toolbarTopFragmentHouseListRl.topBackBtn.setOnClickListener(new View.OnClickListener() { + viewBinding.toolbarTopRl.topBackLl.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { setResult(20); @@ -83,6 +83,7 @@ public void onSuccess(Boolean obj) { UserConfigManage.getInstance().setBingPhone(phoneStr); UserConfigManage.getInstance().Save(); + setResult(20); finish(); } @@ -98,10 +99,8 @@ } private void initView() { - viewBinding.toolbarTopFragmentHouseListRl.topTitleTv.setText(R.string.set_change_bind_phone_number); - viewBinding.toolbarTopFragmentHouseListRl.topTitleTv.setTextColor(getResources().getColor(R.color.text_030D1C, null)); - viewBinding.toolbarTopFragmentHouseListRl.topBackBtn.setVisibility(View.VISIBLE); - viewBinding.toolbarTopFragmentHouseListRl.topBarView.setBackgroundColor(getResources().getColor(R.color.text_FFFFFFFF, null)); + viewBinding.toolbarTopRl.topTitleTv.setText(R.string.set_change_bind_phone_number); + viewBinding.toolbarTopRl.topBackLl.setVisibility(View.VISIBLE); try { Country.load(this); } catch (Exception e) { @@ -118,7 +117,8 @@ public void onPick(Country country) { if (country.flag != 0) viewBinding.bindAreaTv.setText(country.name); - viewBinding.bindAreaNumberTv.setText("+" + country.code); + String code = "+" + country.code; + viewBinding.bindAreaNumberTv.setText(code); } }); dialog.show(); @@ -159,7 +159,6 @@ long time = (millisUntilFinished / 1000); String str = time + "s" + getString(R.string.home_login_psw_verification_repeater); viewBinding.bindPhoneVerificationTv.setText(str); - viewBinding.bindPhoneVerificationTv.setTextColor(getResources().getColor(R.color.text_25000000, null)); viewBinding.bindPhoneVerificationTv.setEnabled(false); } @@ -167,7 +166,6 @@ @Override public void onFinish() { viewBinding.bindPhoneVerificationTv.setText(getString(R.string.home_login_verification_regain)); - viewBinding.bindPhoneVerificationTv.setTextColor(getResources().getColor(R.color.text_245EC3, null)); viewBinding.bindPhoneVerificationTv.setEnabled(true); @@ -188,7 +186,6 @@ HdlThreadLogic.tipFlashingBox(this, false, getString(R.string.home_login_null_verification_code), -1); return false; } - return true; } -- Gitblit v1.8.0