From e69cc227309f3eb2025fa4ef043b075467d97de1 Mon Sep 17 00:00:00 2001
From: hxb <hxb@hdlchina.com.cn>
Date: 星期三, 04 十二月 2024 13:53:47 +0800
Subject: [PATCH] 更改闪屏问题
---
app/src/main/java/com/hdl/photovoltaic/ui/me/BindPhoneActivity.java | 18 +++++++-----------
1 files changed, 7 insertions(+), 11 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..16af677 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
@@ -34,8 +34,7 @@
@Override
public void onBindView(Bundle savedInstanceState) {
- setNotificationBarBackgroundColor(CustomColor.white);
- setStatusBarTextColor();
+ setStatusBarTranslucent();
//鍒濆鍖�
initView();
//鍒濆鍖栫晫闈㈢洃鍚櫒
@@ -45,7 +44,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 +82,7 @@
public void onSuccess(Boolean obj) {
UserConfigManage.getInstance().setBingPhone(phoneStr);
UserConfigManage.getInstance().Save();
+ setResult(20);
finish();
}
@@ -98,10 +98,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 +116,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 +158,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 +165,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 +185,6 @@
HdlThreadLogic.tipFlashingBox(this, false, getString(R.string.home_login_null_verification_code), -1);
return false;
}
-
return true;
}
--
Gitblit v1.8.0