From 3f617fbe58fd89a61e2f4013fe80dba673fbd7ae Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期四, 19 九月 2024 14:38:24 +0800 Subject: [PATCH] 2024年09月19日14:38:04 --- app/src/main/java/com/hdl/photovoltaic/ui/me/BindPhoneActivity.java | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 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..03cfe22 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,11 @@ } 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.topTitleTv.setTextColor(getResources().getColor(R.color.text_030D1C, null)); + viewBinding.toolbarTopRl.topBackLl.setVisibility(View.VISIBLE); + viewBinding.toolbarTopRl.topLeftIv.setImageResource(R.drawable.back_c); + viewBinding.toolbarTopRl.topBarView.setBackgroundColor(getResources().getColor(R.color.text_FFECECEC, null)); try { Country.load(this); } catch (Exception e) { @@ -118,7 +120,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(); -- Gitblit v1.8.0