mac
2024-05-08 b75795836a851a13e54cc4efb597262fb448217c
app/src/main/java/com/hdl/photovoltaic/ui/me/BindPhoneActivity.java
@@ -1,7 +1,6 @@
package com.hdl.photovoltaic.ui.me;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.text.TextUtils;
@@ -84,7 +83,8 @@
                        public void onSuccess(Boolean obj) {
                            UserConfigManage.getInstance().setBingPhone(phoneStr);
                            UserConfigManage.getInstance().Save();
                            HdlThreadLogic.tipFlashingBox(_mActivity, true, getString(R.string.set_bind_phone_succeed), 0);
                            setResult(20);
                            finish();
                        }
                        @Override
@@ -119,7 +119,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();
@@ -204,4 +205,13 @@
        }
    }
    /**
     * 物理按键返回事件
     */
    @Override
    public void onBackPressed() {
        setResult(20);
        super.onBackPressed();
    }
}