正在查看: Easycash v3.75.13 应用的 ECPersonalInfoActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Easycash v3.75.13 应用的 ECPersonalInfoActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.lingyue.easycash.authentication.activity;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Rect;
import android.graphics.Typeface;
import android.net.Uri;
import android.os.Bundle;
import android.text.InputFilter;
import android.text.TextUtils;
import android.text.method.DigitsKeyListener;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.core.widget.NestedScrollView;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.OnClick;
import com.lingyue.easycash.AuthUtils;
import com.lingyue.easycash.R;
import com.lingyue.easycash.adapters.AuthStepAdapter;
import com.lingyue.easycash.appconfig.GeneralConfigDataRepository;
import com.lingyue.easycash.authentication.AuthBusinessProcessor;
import com.lingyue.easycash.commom.EasyCashCommonActivity;
import com.lingyue.easycash.models.ContactInfoRequest;
import com.lingyue.easycash.models.EmploymentInfoRequest;
import com.lingyue.easycash.models.ImmediateContactBean;
import com.lingyue.easycash.models.LabelBean;
import com.lingyue.easycash.models.address.LabelBeanListResponse;
import com.lingyue.easycash.models.enums.AuthOptionType;
import com.lingyue.easycash.models.enums.MinimaListPersonalInfoType;
import com.lingyue.easycash.models.event.AddressSelectEvent;
import com.lingyue.easycash.models.response.IndustryVocationResponse;
import com.lingyue.easycash.models.response.LoanUseResponse;
import com.lingyue.easycash.models.response.RelationShipResponse;
import com.lingyue.easycash.utils.AuthBackTipsDialogUtil;
import com.lingyue.easycash.utils.EasycashUmengEvent;
import com.lingyue.easycash.widght.AuthGeneralView;
import com.lingyue.easycash.widght.AuthGeneralViewV2;
import com.lingyue.easycash.widght.BaseAuthGeneralView;
import com.lingyue.easycash.widght.bottomDialog.EasyCashBottomAddressDialog;
import com.lingyue.easycash.widght.selectLabelBeanView.SingleRowSelectCompanion;
import com.lingyue.easycash.widght.selectLabelBeanView.TwoRowSelectCompanion;
import com.lingyue.idnbaselib.framework.lifecycle.LifecycleEvent;
import com.lingyue.idnbaselib.model.IdnObserver;
import com.lingyue.idnbaselib.model.response.BooleanResponse;
import com.lingyue.idnbaselib.sentrybusiness.ISentryBusinessEventAutoFinish;
import com.lingyue.idnbaselib.utils.DevUtil;
import com.lingyue.idnbaselib.utils.EcFormatUtil;
import com.lingyue.idnbaselib.utils.FieldRuleUtils;
import com.lingyue.idnbaselib.utils.JsonParamsBuilder;
import com.lingyue.idnbaselib.utils.SmoothScrollUtils;
import com.lingyue.idnbaselib.utils.ThirdPartEventUtils;
import com.lingyue.idnbaselib.widget.SelectorLinkage;
import com.lingyue.supertoolkit.customtools.CollectionUtils;
import com.lingyue.supertoolkit.customtools.ScreenUtils;
import com.lingyue.supertoolkit.screen.IScreenShotProtectPage;
import com.lingyue.supertoolkit.widgets.BaseUtils;
import com.lingyue.supertoolkit.widgets.CharFilterForMeiZu;
import com.sensorsdata.analytics.android.autotrack.aop.SensorsDataAutoTrackHelper;
import com.sensorsdata.analytics.android.sdk.SensorsDataInstrumented;
import com.umeng.analytics.pro.bg;
import com.veda.android.bananalibrary.infrastructure.Logger;
import com.yangqianguan.statistics.AutoTrackHelper;
import io.reactivex.Flowable;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.Disposable;
import io.reactivex.functions.Consumer;
import io.reactivex.functions.Predicate;
import io.reactivex.schedulers.Schedulers;
import io.sentry.SpanStatus;
import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
public class ECPersonalInfoActivity extends EasyCashCommonActivity implements ISentryBusinessEventAutoFinish, IScreenShotProtectPage {
private ArrayList<String> B;
private SelectorLinkage C = new SelectorLinkage();
private TwoRowSelectCompanion D;
private TwoRowSelectCompanion E;
private SingleRowSelectCompanion F;
private SingleRowSelectCompanion G;
private SingleRowSelectCompanion H;
private SingleRowSelectCompanion I;
private EasyCashBottomAddressDialog J;
private String K;
private LabelBean L;
private LabelBean M;
private LabelBean N;
private Date O;
private LabelBean P;
private String Q;
private LabelBean R;
private LabelBean S;
private LabelBean T;
private LabelBean U;
private String V;
private String W;
private LabelBean X;
private String Y;
private String Z;
private LabelBean f5a0;
@BindView(R.id.agv_company_phone)
AuthGeneralViewV2 agvCompanyPhone;
@BindView(R.id.agv_education)
AuthGeneralView agvEducation;
@BindView(R.id.agv_emergency_contact_name)
AuthGeneralView agvEmergencyContactName;
@BindView(R.id.agv_emergency_contact_name_other)
AuthGeneralView agvEmergencyContactNameOther;
@BindView(R.id.agv_emergency_contact_phone_number)
AuthGeneralViewV2 agvEmergencyContactPhoneNumber;
@BindView(R.id.agv_emergency_contact_phone_number_other)
AuthGeneralViewV2 agvEmergencyContactPhoneNumberOther;
@BindView(R.id.agv_emergency_contact_relation)
AuthGeneralView agvEmergencyContactRelation;
@BindView(R.id.agv_emergency_contact_relation_other)
AuthGeneralView agvEmergencyContactRelationOther;
@BindView(R.id.agv_industry_vocation)
AuthGeneralView agvIndustryVocation;
@BindView(R.id.agv_loan_use)
AuthGeneralView agvLoanUse;
@BindView(R.id.agv_monthly_income)
AuthGeneralView agvMonthlyIncome;
@BindView(R.id.agv_start_work_time)
AuthGeneralView agvStartWorkTime;
@BindView(R.id.agv_work_address)
AuthGeneralView agvWorkAddress;
@BindView(R.id.agv_work_address_city)
AuthGeneralView agvWorkAddressCity;
private String f6b0;
private String f7c0;
@BindView(R.id.ll_safe_tip)
LinearLayout llSaveTip;
@BindView(R.id.rv_auth)
RecyclerView rvAuth;
@BindView(2131363222)
NestedScrollView scrollView;
@BindView(R.id.tv_emergency_contact_relation_other_title)
TextView tvEmergencyContactRelationOtherTitle;
@BindView(R.id.tv_emergency_contact_relation_title)
TextView tvEmergencyContactRelationTitle;
@BindView(R.id.tv_emergency_contact_tip)
AppCompatTextView tvEmergencyContactTip;
@BindView(R.id.tv_emergency_contact_tip_sub)
AppCompatTextView tvEmergencyContactTipSub;
@BindView(R.id.tv_safe_tip)
TextView tvSaveTip;
static class AnonymousClass12 {
static final int[] a;
static {
int[] iArr = new int[AuthOptionType.values().length];
a = iArr;
try {
iArr[AuthOptionType.EDUCATION.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
}
}
private void A1(BaseAuthGeneralView baseAuthGeneralView) {
baseAuthGeneralView.getEtContent().setKeyListener(DigitsKeyListener.getInstance("0123456789"));
baseAuthGeneralView.setFormatter(new BaseAuthGeneralView.Formatter() {
@Override
public final String a(String str) {
String x2;
x2 = ECPersonalInfoActivity.x2(str);
return x2;
}
});
baseAuthGeneralView.setCallBack(new BaseAuthGeneralView.CallBack() {
@Override
public final String a(String str) {
String y2;
y2 = ECPersonalInfoActivity.this.y2(str);
return y2;
}
});
q1(baseAuthGeneralView);
}
@SensorsDataInstrumented
public void A2(View view) {
this.D.e();
SensorsDataAutoTrackHelper.trackViewOnClick(view);
AutoTrackHelper.trackViewOnClick(view);
}
private void B1() {
SingleRowSelectCompanion singleRowSelectCompanion = new SingleRowSelectCompanion(getString(R.string.relation), this.agvEmergencyContactRelation, this);
this.G = singleRowSelectCompanion;
singleRowSelectCompanion.f(new SingleRowSelectCompanion.SingleRowSelectViewListener() {
@Override
public void a() {
ECPersonalInfoActivity.this.Z2(true);
}
@Override
public void d(View view, LabelBean labelBean) {
ECPersonalInfoActivity.this.X = labelBean;
ECPersonalInfoActivity eCPersonalInfoActivity = ECPersonalInfoActivity.this;
eCPersonalInfoActivity.agvEmergencyContactRelation.setContentText(eCPersonalInfoActivity.X.label);
ECPersonalInfoActivity.this.C.c(ECPersonalInfoActivity.this.agvEmergencyContactRelation);
}
@Override
public void c() {
}
});
this.agvEmergencyContactRelation.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
ECPersonalInfoActivity.this.z2(view);
}
});
}
@SensorsDataInstrumented
public void B2(View view) {
this.F.d();
SensorsDataAutoTrackHelper.trackViewOnClick(view);
AutoTrackHelper.trackViewOnClick(view);
}
private void C1() {
MinimaListPersonalInfoType minimaListPersonalInfoType = MinimaListPersonalInfoType.FIRST_IMMEDIATE_CONTACT;
if (isSupportType(minimaListPersonalInfoType) || isSupportType(MinimaListPersonalInfoType.SECOND_IMMEDIATE_CONTACT)) {
this.tvEmergencyContactTip.setVisibility(0);
this.tvEmergencyContactTipSub.setVisibility(0);
} else {
this.tvEmergencyContactTip.setVisibility(8);
this.tvEmergencyContactTipSub.setVisibility(8);
}
if (isSupportType(minimaListPersonalInfoType) && isSupportType(MinimaListPersonalInfoType.SECOND_IMMEDIATE_CONTACT)) {
this.tvEmergencyContactRelationTitle.setVisibility(0);
this.tvEmergencyContactRelationOtherTitle.setVisibility(0);
} else {
this.tvEmergencyContactRelationTitle.setVisibility(8);
this.tvEmergencyContactRelationOtherTitle.setVisibility(8);
}
}
@SensorsDataInstrumented
public void C2(View view) {
this.H.d();
SensorsDataAutoTrackHelper.trackViewOnClick(view);
AutoTrackHelper.trackViewOnClick(view);
}
private void D1() {
if (!isSupportType(MinimaListPersonalInfoType.FIRST_IMMEDIATE_CONTACT)) {
this.agvEmergencyContactRelation.setVisibility(8);
this.agvEmergencyContactName.setVisibility(8);
this.agvEmergencyContactPhoneNumber.setVisibility(8);
} else {
this.agvEmergencyContactRelation.setVisibility(0);
this.agvEmergencyContactName.setVisibility(0);
this.agvEmergencyContactPhoneNumber.setVisibility(0);
B1();
z1(this.agvEmergencyContactName, 1001);
A1(this.agvEmergencyContactPhoneNumber);
}
}
@SensorsDataInstrumented
public void D2(View view) {
this.E.e();
SensorsDataAutoTrackHelper.trackViewOnClick(view);
AutoTrackHelper.trackViewOnClick(view);
}
private void E1() {
if (!isSupportType(MinimaListPersonalInfoType.INDUSTRY_AND_OCCUPATION)) {
this.agvIndustryVocation.setVisibility(8);
return;
}
this.agvIndustryVocation.setVisibility(0);
TwoRowSelectCompanion twoRowSelectCompanion = new TwoRowSelectCompanion(getString(2131886937), this.agvIndustryVocation, this);
this.D = twoRowSelectCompanion;
twoRowSelectCompanion.g(new TwoRowSelectCompanion.TwoRowSelectViewListener() {
@Override
public void a() {
ECPersonalInfoActivity.this.W2();
}
@Override
public void b(View view, LabelBean labelBean, LabelBean labelBean2) {
ECPersonalInfoActivity.this.L = labelBean;
ECPersonalInfoActivity.this.M = labelBean2;
ECPersonalInfoActivity.this.agvIndustryVocation.o(labelBean.label, labelBean2.label);
ECPersonalInfoActivity.this.C.c(ECPersonalInfoActivity.this.agvIndustryVocation);
}
@Override
public void c() {
com.lingyue.easycash.widght.selectLabelBeanView.e.a(this);
}
});
this.agvIndustryVocation.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
ECPersonalInfoActivity.this.A2(view);
}
});
}
@SensorsDataInstrumented
public void E2(View view) {
if (BaseUtils.l()) {
SensorsDataAutoTrackHelper.trackViewOnClick(view);
AutoTrackHelper.trackViewOnClick(view);
} else {
openCustomerService();
SensorsDataAutoTrackHelper.trackViewOnClick(view);
AutoTrackHelper.trackViewOnClick(view);
}
}
public ArrayList<LabelBean> F1() {
ArrayList<LabelBean> arrayList = new ArrayList<>();
String[] stringArray = getResources().getStringArray(2130903045);
Calendar calendar = Calendar.getInstance();
calendar.setTime(new Date());
int i = calendar.get(1);
for (int i2 = i; i2 > i - 150; i2--) {
LabelBean labelBean = new LabelBean();
labelBean.value = String.valueOf(i2);
labelBean.label = String.valueOf(i2);
labelBean.children = new ArrayList<>();
for (int i3 = 1; i3 <= 12; i3++) {
LabelBean labelBean2 = new LabelBean();
labelBean2.value = String.valueOf(i3);
labelBean2.label = stringArray[i3 - 1];
labelBean.children.add(labelBean2);
}
arrayList.add(labelBean);
}
return arrayList;
}
private void G1() {
if (!isSupportType(MinimaListPersonalInfoType.LOAN_USE)) {
this.agvLoanUse.setVisibility(8);
return;
}
this.agvLoanUse.setVisibility(0);
SingleRowSelectCompanion singleRowSelectCompanion = new SingleRowSelectCompanion(getString(R.string.loan_use), this.agvLoanUse, this);
this.F = singleRowSelectCompanion;
singleRowSelectCompanion.f(new SingleRowSelectCompanion.SingleRowSelectViewListener() {
@Override
public void a() {
ECPersonalInfoActivity.this.X2();
}
@Override
public void d(View view, LabelBean labelBean) {
ECPersonalInfoActivity.this.P = labelBean;
ECPersonalInfoActivity eCPersonalInfoActivity = ECPersonalInfoActivity.this;
eCPersonalInfoActivity.agvLoanUse.setContentText(eCPersonalInfoActivity.P.label);
ECPersonalInfoActivity.this.C.c(ECPersonalInfoActivity.this.agvLoanUse);
}
@Override
public void c() {
}
});
this.agvLoanUse.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
ECPersonalInfoActivity.this.B2(view);
}
});
}
@SensorsDataInstrumented
public void G2(View view) {
if (BaseUtils.l()) {
SensorsDataAutoTrackHelper.trackViewOnClick(view);
AutoTrackHelper.trackViewOnClick(view);
} else {
displayAddressDlg();
SensorsDataAutoTrackHelper.trackViewOnClick(view);
AutoTrackHelper.trackViewOnClick(view);
}
}
private void H1() {
LabelBean labelBean;
LabelBean labelBean2 = this.N;
if (labelBean2 != null) {
this.agvEducation.setContentText(labelBean2.label);
}
LabelBean labelBean3 = this.L;
if (labelBean3 != null && (labelBean = this.M) != null) {
this.agvIndustryVocation.o(labelBean3.label, labelBean.label);
}
Date date = this.O;
if (date != null) {
this.agvStartWorkTime.setContentText(r1(date));
}
LabelBean labelBean4 = this.P;
if (labelBean4 != null) {
this.agvLoanUse.setContentText(labelBean4.label);
}
if (!TextUtils.isEmpty(this.Q)) {
this.agvMonthlyIncome.setInputText(this.Q);
}
w1();
if (!TextUtils.isEmpty(this.V)) {
this.agvWorkAddress.setInputText(this.V);
}
if (!TextUtils.isEmpty(this.W)) {
this.agvCompanyPhone.setContentText(this.W);
}
LabelBean labelBean5 = this.X;
if (labelBean5 != null) {
this.agvEmergencyContactRelation.setContentText(labelBean5.label);
}
if (!TextUtils.isEmpty(this.Y)) {
this.agvEmergencyContactName.setInputText(this.Y);
}
if (!TextUtils.isEmpty(this.Z)) {
this.agvEmergencyContactPhoneNumber.setInputText(this.Z);
}
LabelBean labelBean6 = this.f5a0;
if (labelBean6 != null) {
this.agvEmergencyContactRelationOther.setContentText(labelBean6.label);
}
if (!TextUtils.isEmpty(this.f6b0)) {
this.agvEmergencyContactNameOther.setInputText(this.f6b0);
}
if (TextUtils.isEmpty(this.f7c0)) {
return;
}
this.agvEmergencyContactPhoneNumberOther.setInputText(this.f7c0);
}
public String H2(String str) {
return (TextUtils.isEmpty(str) || str.length() >= 6) ? "" : getString(R.string.easycash_address_detail_hint);
}
private void I1() {
if (TextUtils.isEmpty(this.userSession.f().minimalistProcessAuthContent)) {
this.llSaveTip.setVisibility(8);
} else {
this.llSaveTip.setVisibility(0);
this.tvSaveTip.setText(this.userSession.f().minimalistProcessAuthContent);
}
}
public static String I2(String str) {
if (str.length() == 0) {
return str;
}
String replaceAll = str.replaceAll("[^0-9]", "");
return TextUtils.isEmpty(replaceAll) ? "" : EcFormatUtil.l(new BigDecimal(replaceAll));
}
private void J1() {
if (!isSupportType(MinimaListPersonalInfoType.SECOND_IMMEDIATE_CONTACT)) {
this.agvEmergencyContactRelationOther.setVisibility(8);
this.agvEmergencyContactNameOther.setVisibility(8);
this.agvEmergencyContactPhoneNumberOther.setVisibility(8);
} else {
this.agvEmergencyContactRelationOther.setVisibility(0);
this.agvEmergencyContactNameOther.setVisibility(0);
this.agvEmergencyContactPhoneNumberOther.setVisibility(0);
K1();
z1(this.agvEmergencyContactNameOther, ECLiveCheckPreviewSimpleActivity.REQUEST_CODE_FOR_ADVANCE_LIVE_RECOGNITION);
A1(this.agvEmergencyContactPhoneNumberOther);
}
}
public void J2() {
this.I.d();
}
private void K1() {
SingleRowSelectCompanion singleRowSelectCompanion = new SingleRowSelectCompanion(getString(R.string.relation), this.agvEmergencyContactRelationOther, this);
this.H = singleRowSelectCompanion;
singleRowSelectCompanion.f(new SingleRowSelectCompanion.SingleRowSelectViewListener() {
@Override
public void a() {
ECPersonalInfoActivity.this.Z2(false);
}
@Override
public void d(View view, LabelBean labelBean) {
ECPersonalInfoActivity.this.f5a0 = labelBean;
ECPersonalInfoActivity eCPersonalInfoActivity = ECPersonalInfoActivity.this;
eCPersonalInfoActivity.agvEmergencyContactRelationOther.setContentText(eCPersonalInfoActivity.f5a0.label);
ECPersonalInfoActivity.this.C.c(ECPersonalInfoActivity.this.agvEmergencyContactRelationOther);
}
@Override
public void c() {
}
});
this.agvEmergencyContactRelationOther.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
ECPersonalInfoActivity.this.C2(view);
}
});
}
public void K2() {
this.D.e();
}
private void L1() {
this.K = getSeparatorString(new DecimalFormat().getDecimalFormatSymbols().getGroupingSeparator());
}
public void L2() {
this.E.e();
}
private void M1() {
this.a.setVisibility(this.userSession.f().showCustomerService ? 0 : 8);
this.a.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
ECPersonalInfoActivity.this.E2(view);
}
});
}
public void M2() {
this.E.e();
}
private void N1() {
if (!isSupportType(MinimaListPersonalInfoType.COMPANY_ADDRESS)) {
this.agvWorkAddress.setVisibility(8);
this.agvWorkAddressCity.setVisibility(8);
return;
}
this.agvWorkAddressCity.setVisibility(0);
this.agvWorkAddress.setVisibility(0);
this.J = new EasyCashBottomAddressDialog(this, getString(R.string.easycash_work_city), new EasyCashBottomAddressDialog.CallBack() {
@Override
public final void a(AddressSelectEvent addressSelectEvent) {
ECPersonalInfoActivity.this.F2(addressSelectEvent);
}
});
this.agvWorkAddressCity.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
ECPersonalInfoActivity.this.G2(view);
}
});
this.agvWorkAddress.setCallBack(new BaseAuthGeneralView.CallBack() {
@Override
public final String a(String str) {
String H2;
H2 = ECPersonalInfoActivity.this.H2(str);
return H2;
}
});
q1(this.agvWorkAddress);
}
public void N2() {
this.F.d();
}
private void O1() {
if (!isSupportType(MinimaListPersonalInfoType.MONTHLY_INCOME)) {
this.agvMonthlyIncome.setVisibility(8);
return;
}
this.agvMonthlyIncome.setVisibility(0);
this.agvMonthlyIncome.getEtContent().setKeyListener(DigitsKeyListener.getInstance("0123456789"));
this.agvMonthlyIncome.getEtContent().setInputType(2);
this.agvMonthlyIncome.getEtContent().setFilters(new InputFilter[]{new InputFilter.LengthFilter(17)});
this.agvMonthlyIncome.setFormatter(new BaseAuthGeneralView.Formatter() {
@Override
public final String a(String str) {
String I2;
I2 = ECPersonalInfoActivity.I2(str);
return I2;
}
});
q1(this.agvMonthlyIncome);
ThirdPartEventUtils.A(this, this.agvMonthlyIncome.getEtContent(), EasycashUmengEvent.q);
}
public void O2() {
this.G.d();
}
private boolean P1() {
return (this.R == null || this.S == null || this.T == null || this.U == null) ? false : true;
}
public void P2() {
this.H.d();
}
public void Q1(BaseAuthGeneralView baseAuthGeneralView) {
SmoothScrollUtils.c(this.scrollView, baseAuthGeneralView);
}
public static boolean Q2(Integer num) throws Exception {
return num.intValue() == 8;
}
public void R1(final BaseAuthGeneralView baseAuthGeneralView) {
this.scrollView.postDelayed(new Runnable() {
@Override
public final void run() {
ECPersonalInfoActivity.this.Q1(baseAuthGeneralView);
}
}, 300L);
}
public void R2(Integer num) throws Exception {
E1();
y1();
G1();
N1();
B1();
K1();
initStatWorkTime();
V2(this.agvEmergencyContactName);
V2(this.agvEmergencyContactNameOther);
I1();
}
public void S1() {
this.I.d();
}
public void T1(View view) {
if (this.N == null) {
c3(view);
this.agvEducation.postDelayed(new Runnable() {
@Override
public final void run() {
ECPersonalInfoActivity.this.S1();
}
}, 500L);
}
}
private void T2() {
if (isSupportType(MinimaListPersonalInfoType.DEGREE) && this.N == null) {
BaseUtils.p(getApplicationContext(), getString(R.string.please_choose_education_info));
SmoothScrollUtils.c(this.scrollView, this.agvEducation);
this.agvEducation.postDelayed(new Runnable() {
@Override
public final void run() {
ECPersonalInfoActivity.this.J2();
}
}, 500L);
return;
}
if (isSupportType(MinimaListPersonalInfoType.INDUSTRY_AND_OCCUPATION) && (this.L == null || this.M == null)) {
BaseUtils.p(getApplicationContext(), getResources().getString(R.string.please_select_industry_vocation));
SmoothScrollUtils.c(this.scrollView, this.agvIndustryVocation);
this.agvIndustryVocation.postDelayed(new Runnable() {
@Override
public final void run() {
ECPersonalInfoActivity.this.K2();
}
}, 500L);
return;
}
if (isSupportType(MinimaListPersonalInfoType.LENGTH_OF_EMPLOYMENT)) {
Date date = this.O;
if (date == null) {
BaseUtils.p(getApplicationContext(), getResources().getString(R.string.easycash_please_select_start_work_time));
SmoothScrollUtils.c(this.scrollView, this.agvStartWorkTime);
this.agvStartWorkTime.postDelayed(new Runnable() {
@Override
public final void run() {
ECPersonalInfoActivity.this.L2();
}
}, 500L);
return;
} else if (date.getTime() > System.currentTimeMillis()) {
BaseUtils.p(getApplicationContext(), getResources().getString(R.string.easycash_start_work_time_cannot_be_later_than_now));
SmoothScrollUtils.c(this.scrollView, this.agvStartWorkTime);
this.agvStartWorkTime.postDelayed(new Runnable() {
@Override
public final void run() {
ECPersonalInfoActivity.this.M2();
}
}, 500L);
return;
}
}
if (isSupportType(MinimaListPersonalInfoType.LOAN_USE) && this.P == null) {
BaseUtils.p(getApplicationContext(), getResources().getString(R.string.please_select_loan_use));
SmoothScrollUtils.c(this.scrollView, this.agvLoanUse);
this.agvLoanUse.postDelayed(new Runnable() {
@Override
public final void run() {
ECPersonalInfoActivity.this.N2();
}
}, 500L);
return;
}
if (isSupportType(MinimaListPersonalInfoType.MONTHLY_INCOME) && TextUtils.isEmpty(this.agvMonthlyIncome.getEtContent().getText().toString().trim())) {
BaseUtils.p(this, getResources().getString(R.string.please_input_month_income));
SmoothScrollUtils.c(this.scrollView, this.agvMonthlyIncome);
showSoftInput(this.agvMonthlyIncome.getEtContent());
return;
}
if (isSupportType(MinimaListPersonalInfoType.COMPANY_ADDRESS)) {
if (this.R == null) {
BaseUtils.p(getApplicationContext(), getString(R.string.please_choose_work_city));
SmoothScrollUtils.c(this.scrollView, this.agvWorkAddressCity);
displayAddressDlg();
return;
}
if (this.S == null) {
BaseUtils.p(getApplicationContext(), getString(R.string.please_choose_work_city));
SmoothScrollUtils.c(this.scrollView, this.agvWorkAddressCity);
displayAddressDlg();
return;
}
if (this.T == null) {
BaseUtils.p(getApplicationContext(), getString(R.string.please_choose_work_city));
SmoothScrollUtils.c(this.scrollView, this.agvWorkAddressCity);
displayAddressDlg();
return;
} else if (this.U == null) {
BaseUtils.p(getApplicationContext(), getString(R.string.please_choose_work_city));
SmoothScrollUtils.c(this.scrollView, this.agvWorkAddressCity);
displayAddressDlg();
return;
} else if (this.agvWorkAddress.getEtContent().getText() == null || TextUtils.isEmpty(this.agvWorkAddress.getEtContent().getText().toString().trim())) {
BaseUtils.p(this, getString(R.string.please_input_street));
showSoftInput(this.agvWorkAddress.getEtContent());
return;
} else if (this.agvWorkAddress.getEtContent().getText().toString().trim().length() < 6) {
BaseUtils.p(this, getString(R.string.easycash_address_detail_hint));
showSoftInput(this.agvWorkAddress.getEtContent());
return;
}
}
if (isSupportType(MinimaListPersonalInfoType.FIRST_IMMEDIATE_CONTACT)) {
if (this.X == null) {
BaseUtils.p(getApplicationContext(), getString(R.string.please_input_contacts_relationship));
SmoothScrollUtils.c(this.scrollView, this.agvEmergencyContactRelation);
this.agvEmergencyContactRelation.postDelayed(new Runnable() {
@Override
public final void run() {
ECPersonalInfoActivity.this.O2();
}
}, 500L);
return;
} else if (TextUtils.isEmpty(this.agvEmergencyContactName.getTrimmedText())) {
BaseUtils.p(getApplicationContext(), getString(R.string.please_input_name));
SmoothScrollUtils.c(this.scrollView, this.agvEmergencyContactName);
showSoftInput(this.agvEmergencyContactName.getEtContent());
return;
} else if (TextUtils.isEmpty(this.agvEmergencyContactPhoneNumber.getTrimmedText())) {
BaseUtils.p(getApplicationContext(), getString(R.string.please_input_emergency_contact_phone_number));
SmoothScrollUtils.c(this.scrollView, this.agvEmergencyContactPhoneNumber);
showSoftInput(this.agvEmergencyContactPhoneNumber.getEtContent());
return;
} else if (!FieldRuleUtils.f(this.agvEmergencyContactPhoneNumber.getTrimmedText())) {
BaseUtils.p(getApplicationContext(), getString(R.string.easycash_phone_number_check_tip));
SmoothScrollUtils.c(this.scrollView, this.agvEmergencyContactPhoneNumber);
showSoftInput(this.agvEmergencyContactPhoneNumber.getEtContent());
return;
}
}
if (isSupportType(MinimaListPersonalInfoType.SECOND_IMMEDIATE_CONTACT)) {
if (this.f5a0 == null) {
BaseUtils.p(getApplicationContext(), getString(R.string.please_input_contacts_relationship));
SmoothScrollUtils.c(this.scrollView, this.agvEmergencyContactRelationOther);
this.agvEmergencyContactRelationOther.postDelayed(new Runnable() {
@Override
public final void run() {
ECPersonalInfoActivity.this.P2();
}
}, 500L);
return;
} else if (TextUtils.isEmpty(this.agvEmergencyContactNameOther.getTrimmedText())) {
BaseUtils.p(getApplicationContext(), getString(R.string.please_input_name));
SmoothScrollUtils.c(this.scrollView, this.agvEmergencyContactNameOther);
showSoftInput(this.agvEmergencyContactNameOther.getEtContent());
return;
} else if (TextUtils.isEmpty(this.agvEmergencyContactPhoneNumberOther.getTrimmedText())) {
BaseUtils.p(getApplicationContext(), getString(R.string.please_input_emergency_contact_phone_number));
SmoothScrollUtils.c(this.scrollView, this.agvEmergencyContactPhoneNumberOther);
showSoftInput(this.agvEmergencyContactPhoneNumberOther.getEtContent());
return;
} else if (!FieldRuleUtils.f(this.agvEmergencyContactPhoneNumberOther.getTrimmedText())) {
BaseUtils.p(getApplicationContext(), getString(R.string.easycash_phone_number_check_tip));
SmoothScrollUtils.c(this.scrollView, this.agvEmergencyContactPhoneNumberOther);
showSoftInput(this.agvEmergencyContactPhoneNumberOther.getEtContent());
return;
}
}
a3(t1(), u1());
}
public void U1() {
this.D.e();
}
public void U2(RelationShipResponse relationShipResponse, boolean z2) {
dismissLoadingDialog();
if (z2) {
this.G.e(relationShipResponse.body.first);
this.G.h();
} else {
this.H.e(relationShipResponse.body.second);
this.H.h();
}
}
public void V1(View view) {
if (this.L == null || this.M == null) {
c3(view);
this.agvIndustryVocation.postDelayed(new Runnable() {
@Override
public final void run() {
ECPersonalInfoActivity.this.U1();
}
}, 500L);
}
}
private void V2(AuthGeneralView authGeneralView) {
if (!this.userSession.f().immediateContactBySelect) {
authGeneralView.getIvRight().setVisibility(8);
return;
}
authGeneralView.setRightIcon(R.drawable.easycash_ic_emergency_contact);
ImageView ivRight = authGeneralView.getIvRight();
ViewGroup.LayoutParams layoutParams = ivRight.getLayoutParams();
layoutParams.height = getResources().getDimensionPixelSize(2131165540);
layoutParams.width = getResources().getDimensionPixelSize(2131165540);
ivRight.setLayoutParams(layoutParams);
}
public void W1() {
this.E.e();
}
public void W2() {
showLoadingDialog();
this.apiHelper.a().x().K(AndroidSchedulers.a()).a(new IdnObserver<IndustryVocationResponse>(this) {
@Override
public void onSuccess(IndustryVocationResponse industryVocationResponse) {
ECPersonalInfoActivity.this.dismissLoadingDialog();
ECPersonalInfoActivity.this.D.f(industryVocationResponse.body);
ECPersonalInfoActivity.this.D.i();
}
});
}
public void X1(View view) {
if (this.O == null) {
c3(view);
this.agvStartWorkTime.postDelayed(new Runnable() {
@Override
public final void run() {
ECPersonalInfoActivity.this.W1();
}
}, 500L);
}
}
public void X2() {
this.apiHelper.a().Z1().K(AndroidSchedulers.a()).a(new IdnObserver<LoanUseResponse>(this) {
@Override
public void onSuccess(LoanUseResponse loanUseResponse) {
ECPersonalInfoActivity.this.F.e(loanUseResponse.body);
ECPersonalInfoActivity.this.F.h();
}
});
}
public void Y1() {
this.F.d();
}
public void Y2(final AuthOptionType authOptionType) {
showLoadingDialog();
this.apiHelper.a().w(authOptionType.name()).a(new IdnObserver<LabelBeanListResponse>(this) {
@Override
public void onSuccess(LabelBeanListResponse labelBeanListResponse) {
ECPersonalInfoActivity.this.dismissLoadingDialog();
if (AnonymousClass12.a[authOptionType.ordinal()] != 1) {
return;
}
ECPersonalInfoActivity.this.I.e(labelBeanListResponse.body);
ECPersonalInfoActivity.this.I.h();
}
});
}
public void Z1(View view) {
if (this.P == null) {
c3(view);
this.agvLoanUse.postDelayed(new Runnable() {
@Override
public final void run() {
ECPersonalInfoActivity.this.Y1();
}
}, 500L);
}
}
public void Z2(final boolean z2) {
showLoadingDialog();
this.apiHelper.a().D0().a(new IdnObserver<RelationShipResponse>(this) {
@Override
public void onSuccess(RelationShipResponse relationShipResponse) {
ECPersonalInfoActivity.this.U2(relationShipResponse, z2);
}
});
}
public void a2() {
this.agvMonthlyIncome.getEtContent().requestFocus();
showSoftInput(this.agvMonthlyIncome.getEtContent());
}
private void a3(ContactInfoRequest contactInfoRequest, EmploymentInfoRequest employmentInfoRequest) {
showLoadingDialog();
this.apiHelper.a().x0(this.gson.t(contactInfoRequest), this.gson.t(employmentInfoRequest)).a(new IdnObserver<BooleanResponse>(this) {
@Override
public void onError(Throwable th, BooleanResponse booleanResponse) {
super.onError(th, (Throwable) booleanResponse);
ECPersonalInfoActivity.this.businessTransaction("UserAuthOrder").b(SpanStatus.INTERNAL_ERROR);
ThirdPartEventUtils.D(ECPersonalInfoActivity.this, EasycashUmengEvent.R2, new JsonParamsBuilder().d("code").a(String.valueOf(booleanResponse.status.code)).d("isMinimalist").a(String.valueOf(ECPersonalInfoActivity.this.userSession.b().canEnterMinimaListProcess)).d("detail").a(booleanResponse.status.detail).c());
}
@Override
public void onSuccess(BooleanResponse booleanResponse) {
ECPersonalInfoActivity.this.businessTransaction("UserAuthOrder").o(SpanStatus.OK);
ECPersonalInfoActivity.this.dismissLoadingDialog();
?? r3 = ECPersonalInfoActivity.this;
r3.authUtil.T(r3, new AuthUtils.DefaultAuthCallBack(r3));
}
});
}
public void b2(View view) {
if (TextUtils.isEmpty(this.agvMonthlyIncome.getTrimmedText())) {
c3(view);
this.agvMonthlyIncome.postDelayed(new Runnable() {
@Override
public final void run() {
ECPersonalInfoActivity.this.a2();
}
}, 500L);
}
}
private void b3(Intent intent, BaseAuthGeneralView baseAuthGeneralView, BaseAuthGeneralView baseAuthGeneralView2) {
Uri data = intent.getData();
String[] strArr = {"data1", bg.s};
if (data == null) {
return;
}
try {
Cursor query = getContentResolver().query(data, strArr, null, null, null);
if (query != null) {
try {
if (query.moveToFirst()) {
int columnIndex = query.getColumnIndex("data1");
int columnIndex2 = query.getColumnIndex(bg.s);
String i = FieldRuleUtils.i(query.getString(columnIndex));
String string = query.getString(columnIndex2);
baseAuthGeneralView.getTvHintTop().setVisibility(0);
baseAuthGeneralView.getEtContent().setText(string);
baseAuthGeneralView2.getTvHintTop().setVisibility(0);
baseAuthGeneralView2.getEtContent().setText(i);
baseAuthGeneralView2.c();
}
} finally {
}
}
if (query != null) {
query.close();
}
} catch (Exception e) {
BaseUtils.p(this, getString(R.string.easycash_get_contact_error));
Logger.c().b(Log.getStackTraceString(e));
}
}
public void c2() {
this.J.show();
}
public void d2(View view) {
if (P1()) {
return;
}
c3(view);
this.agvWorkAddressCity.postDelayed(new Runnable() {
@Override
public final void run() {
ECPersonalInfoActivity.this.c2();
}
}, 500L);
}
private void d3() {
if (this.userSession.f().isSubsequentGainAuthSwitch) {
duringActive((Flowable) GeneralConfigDataRepository.d().c(), false).C(new Predicate() {
public final boolean test(Object obj) {
boolean Q2;
Q2 = ECPersonalInfoActivity.Q2((Integer) obj);
return Q2;
}
}).o0(1L).l0(Schedulers.c()).Q(AndroidSchedulers.a()).g0(new Consumer() {
public final void accept(Object obj) {
ECPersonalInfoActivity.this.R2((Integer) obj);
}
}, new Consumer() {
public final void accept(Object obj) {
DevUtil.a((Throwable) obj);
}
});
}
}
public void e2() {
this.agvWorkAddress.getEtContent().requestFocus();
showSoftInput(this.agvWorkAddress.getEtContent());
}
public void f2(View view) {
if (P1()) {
return;
}
c3(view);
this.agvWorkAddress.postDelayed(new Runnable() {
@Override
public final void run() {
ECPersonalInfoActivity.this.e2();
}
}, 500L);
}
public void g2() {
this.agvCompanyPhone.getEtContent().requestFocus();
showSoftInput(this.agvCompanyPhone.getEtContent());
}
public void h2(View view) {
if (P1()) {
return;
}
c3(view);
this.agvCompanyPhone.postDelayed(new Runnable() {
@Override
public final void run() {
ECPersonalInfoActivity.this.g2();
}
}, 500L);
}
public void i2() {
this.G.d();
}
public void j2(View view) {
if (this.X == null) {
c3(view);
this.agvEmergencyContactRelation.postDelayed(new Runnable() {
@Override
public final void run() {
ECPersonalInfoActivity.this.i2();
}
}, 500L);
}
}
public void k2() {
this.agvEmergencyContactName.getEtContent().requestFocus();
showSoftInput(this.agvEmergencyContactName.getEtContent());
}
public void l2(View view) {
if (TextUtils.isEmpty(this.agvEmergencyContactName.getTrimmedText())) {
c3(view);
this.agvEmergencyContactName.postDelayed(new Runnable() {
@Override
public final void run() {
ECPersonalInfoActivity.this.k2();
}
}, 500L);
}
}
public void m2() {
this.agvEmergencyContactPhoneNumber.getEtContent().requestFocus();
showSoftInput(this.agvEmergencyContactPhoneNumber.getEtContent());
}
public void n2(View view) {
if (TextUtils.isEmpty(this.agvEmergencyContactPhoneNumber.getTrimmedText())) {
c3(view);
this.agvEmergencyContactPhoneNumber.postDelayed(new Runnable() {
@Override
public final void run() {
ECPersonalInfoActivity.this.m2();
}
}, 500L);
}
}
public void o2() {
this.H.d();
}
public void p2(View view) {
if (this.f5a0 == null) {
c3(view);
this.agvEmergencyContactRelationOther.postDelayed(new Runnable() {
@Override
public final void run() {
ECPersonalInfoActivity.this.o2();
}
}, 500L);
}
}
private void q1(final BaseAuthGeneralView baseAuthGeneralView) {
if (baseAuthGeneralView == null) {
return;
}
baseAuthGeneralView.setOnFocusListener(new BaseAuthGeneralView.OnFocusListener() {
@Override
public final void a() {
ECPersonalInfoActivity.this.R1(baseAuthGeneralView);
}
});
}
public void q2() {
this.agvEmergencyContactNameOther.getEtContent().requestFocus();
showSoftInput(this.agvEmergencyContactNameOther.getEtContent());
}
public String r1(Date date) {
return date == null ? "" : EcFormatUtil.g(date);
}
public void r2(View view) {
if (TextUtils.isEmpty(this.agvEmergencyContactNameOther.getTrimmedText())) {
c3(view);
this.agvEmergencyContactNameOther.postDelayed(new Runnable() {
@Override
public final void run() {
ECPersonalInfoActivity.this.q2();
}
}, 500L);
}
}
private void s1() {
if (isSupportType(MinimaListPersonalInfoType.DEGREE)) {
this.C.a(this.agvEducation, new SelectorLinkage.Task() {
@Override
public final void a(View view) {
ECPersonalInfoActivity.this.T1(view);
}
});
}
if (isSupportType(MinimaListPersonalInfoType.INDUSTRY_AND_OCCUPATION)) {
this.C.a(this.agvIndustryVocation, new SelectorLinkage.Task() {
@Override
public final void a(View view) {
ECPersonalInfoActivity.this.V1(view);
}
});
}
if (isSupportType(MinimaListPersonalInfoType.LENGTH_OF_EMPLOYMENT)) {
this.C.a(this.agvStartWorkTime, new SelectorLinkage.Task() {
@Override
public final void a(View view) {
ECPersonalInfoActivity.this.X1(view);
}
});
}
if (isSupportType(MinimaListPersonalInfoType.LOAN_USE)) {
this.C.a(this.agvLoanUse, new SelectorLinkage.Task() {
@Override
public final void a(View view) {
ECPersonalInfoActivity.this.Z1(view);
}
});
}
if (isSupportType(MinimaListPersonalInfoType.MONTHLY_INCOME)) {
this.C.a(this.agvMonthlyIncome, new SelectorLinkage.Task() {
@Override
public final void a(View view) {
ECPersonalInfoActivity.this.b2(view);
}
});
}
if (isSupportType(MinimaListPersonalInfoType.COMPANY_ADDRESS)) {
this.C.a(this.agvWorkAddressCity, new SelectorLinkage.Task() {
@Override
public final void a(View view) {
ECPersonalInfoActivity.this.d2(view);
}
});
this.C.a(this.agvWorkAddress, new SelectorLinkage.Task() {
@Override
public final void a(View view) {
ECPersonalInfoActivity.this.f2(view);
}
});
}
if (isSupportType(MinimaListPersonalInfoType.COMPANY_TELEPHONE)) {
this.C.a(this.agvCompanyPhone, new SelectorLinkage.Task() {
@Override
public final void a(View view) {
ECPersonalInfoActivity.this.h2(view);
}
});
}
if (isSupportType(MinimaListPersonalInfoType.FIRST_IMMEDIATE_CONTACT)) {
this.C.a(this.agvEmergencyContactRelation, new SelectorLinkage.Task() {
@Override
public final void a(View view) {
ECPersonalInfoActivity.this.j2(view);
}
});
this.C.a(this.agvEmergencyContactName, new SelectorLinkage.Task() {
@Override
public final void a(View view) {
ECPersonalInfoActivity.this.l2(view);
}
});
this.C.a(this.agvEmergencyContactPhoneNumber, new SelectorLinkage.Task() {
@Override
public final void a(View view) {
ECPersonalInfoActivity.this.n2(view);
}
});
}
if (isSupportType(MinimaListPersonalInfoType.SECOND_IMMEDIATE_CONTACT)) {
this.C.a(this.agvEmergencyContactRelationOther, new SelectorLinkage.Task() {
@Override
public final void a(View view) {
ECPersonalInfoActivity.this.p2(view);
}
});
this.C.a(this.agvEmergencyContactNameOther, new SelectorLinkage.Task() {
@Override
public final void a(View view) {
ECPersonalInfoActivity.this.r2(view);
}
});
this.C.a(this.agvEmergencyContactPhoneNumberOther, new SelectorLinkage.Task() {
@Override
public final void a(View view) {
ECPersonalInfoActivity.this.t2(view);
}
});
}
}
public void s2() {
this.agvEmergencyContactPhoneNumberOther.getEtContent().requestFocus();
showSoftInput(this.agvEmergencyContactPhoneNumberOther.getEtContent());
}
public static void startECPersonalInfoActivity(Activity activity, @NonNull List<String> list) {
Intent intent = new Intent(activity, (Class<?>) ECPersonalInfoActivity.class);
intent.putStringArrayListExtra("minimaListPersonalInfoTypeList", (ArrayList) list);
activity.startActivity(intent);
}
@NonNull
private ContactInfoRequest t1() {
ContactInfoRequest contactInfoRequest = new ContactInfoRequest();
if (isSupportType(MinimaListPersonalInfoType.DEGREE)) {
contactInfoRequest.education = this.N.value;
}
if (isSupportType(MinimaListPersonalInfoType.FIRST_IMMEDIATE_CONTACT)) {
ImmediateContactBean immediateContactBean = new ImmediateContactBean();
contactInfoRequest.immediateContact = immediateContactBean;
immediateContactBean.name = this.agvEmergencyContactName.getEtContent().getText().toString().trim();
contactInfoRequest.immediateContact.mobilePhoneNo = this.agvEmergencyContactPhoneNumber.getTrimmedText();
contactInfoRequest.immediateContact.relationship = this.X.value;
}
if (isSupportType(MinimaListPersonalInfoType.SECOND_IMMEDIATE_CONTACT)) {
ImmediateContactBean immediateContactBean2 = new ImmediateContactBean();
contactInfoRequest.secondImmediateContact = immediateContactBean2;
immediateContactBean2.name = this.agvEmergencyContactNameOther.getTrimmedText();
contactInfoRequest.secondImmediateContact.mobilePhoneNo = this.agvEmergencyContactPhoneNumberOther.getTrimmedText();
contactInfoRequest.secondImmediateContact.relationship = this.f5a0.value;
}
return contactInfoRequest;
}
public void t2(View view) {
if (TextUtils.isEmpty(this.agvEmergencyContactPhoneNumberOther.getTrimmedText())) {
c3(view);
this.agvEmergencyContactPhoneNumberOther.postDelayed(new Runnable() {
@Override
public final void run() {
ECPersonalInfoActivity.this.s2();
}
}, 500L);
}
}
@NonNull
private EmploymentInfoRequest u1() {
EmploymentInfoRequest employmentInfoRequest = new EmploymentInfoRequest();
if (isSupportType(MinimaListPersonalInfoType.INDUSTRY_AND_OCCUPATION)) {
employmentInfoRequest.industry = this.L.value;
employmentInfoRequest.profession = this.M.value;
}
if (isSupportType(MinimaListPersonalInfoType.MONTHLY_INCOME)) {
employmentInfoRequest.monthlyIncome = TextUtils.isEmpty(this.agvMonthlyIncome.getTrimmedText()) ? "" : this.agvMonthlyIncome.getTrimmedText().replaceAll(this.K, "");
}
if (isSupportType(MinimaListPersonalInfoType.LENGTH_OF_EMPLOYMENT)) {
employmentInfoRequest.startWorkTime = String.valueOf(this.O.getTime());
}
if (isSupportType(MinimaListPersonalInfoType.LOAN_USE)) {
employmentInfoRequest.loanUse = this.P.value;
}
if (isSupportType(MinimaListPersonalInfoType.COMPANY_ADDRESS)) {
employmentInfoRequest.companyProvince = this.R.label;
employmentInfoRequest.companyCity = this.S.label;
employmentInfoRequest.companyDistrict = this.T.label;
employmentInfoRequest.companyVillage = this.U.label;
employmentInfoRequest.companyDetailsAddress = this.agvWorkAddress.getEtContent().getText().toString().trim();
}
if (isSupportType(MinimaListPersonalInfoType.COMPANY_TELEPHONE)) {
String trim = this.agvCompanyPhone.getEtContent().getText().toString().trim();
this.W = trim;
if (!TextUtils.isEmpty(trim)) {
employmentInfoRequest.companyTel = trim;
}
}
return employmentInfoRequest;
}
public static String u2(String str) {
String replaceAll = str.replaceAll("\\D", "");
return replaceAll.length() > 4 ? replaceAll.replaceAll("(\\d{4})(?=\\d)", "$1 ") : replaceAll;
}
private void v1() {
if (this.userSession.b().canEnterMinimaListProcess) {
this.rvAuth.setVisibility(8);
return;
}
this.rvAuth.setAdapter(new AuthStepAdapter(this, this.authUtil.y(), this.authUtil.z()));
this.rvAuth.setVisibility(0);
}
@SensorsDataInstrumented
public void v2(View view) {
this.I.d();
SensorsDataAutoTrackHelper.trackViewOnClick(view);
AutoTrackHelper.trackViewOnClick(view);
}
private void w1() {
StringBuilder sb = new StringBuilder();
LabelBean labelBean = this.R;
if (labelBean != null) {
sb.append(labelBean.label);
}
if (this.S != null) {
sb.append(", ");
sb.append(this.S.label);
}
if (this.T != null) {
sb.append(", ");
sb.append(this.T.label);
}
if (this.U != null) {
sb.append(", ");
sb.append(this.U.label);
}
if (sb.length() != 0) {
this.agvWorkAddressCity.setContentText(sb.toString());
}
}
@SensorsDataInstrumented
public void w2(int i, View view) {
clickContact(i);
SensorsDataAutoTrackHelper.trackViewOnClick(view);
AutoTrackHelper.trackViewOnClick(view);
}
private void x1() {
if (!isSupportType(MinimaListPersonalInfoType.COMPANY_TELEPHONE)) {
this.agvCompanyPhone.setVisibility(8);
return;
}
this.agvCompanyPhone.setVisibility(0);
this.agvCompanyPhone.getEtContent().setKeyListener(DigitsKeyListener.getInstance("0123456789"));
this.agvCompanyPhone.setFormatter(new BaseAuthGeneralView.Formatter() {
@Override
public final String a(String str) {
String u2;
u2 = ECPersonalInfoActivity.u2(str);
return u2;
}
});
q1(this.agvCompanyPhone);
}
public static String x2(String str) {
String replaceAll = str.replaceAll("\\D", "");
return replaceAll.length() > 4 ? replaceAll.replaceAll("(\\d{4})(?=\\d)", "$1 ") : replaceAll;
}
private void y1() {
if (!isSupportType(MinimaListPersonalInfoType.DEGREE)) {
this.agvEducation.setVisibility(8);
return;
}
this.agvEducation.setVisibility(0);
SingleRowSelectCompanion singleRowSelectCompanion = new SingleRowSelectCompanion(getString(R.string.easycash_education), this.agvEducation, this);
this.I = singleRowSelectCompanion;
singleRowSelectCompanion.f(new SingleRowSelectCompanion.SingleRowSelectViewListener() {
@Override
public void a() {
ECPersonalInfoActivity.this.Y2(AuthOptionType.EDUCATION);
}
@Override
public void d(View view, LabelBean labelBean) {
ECPersonalInfoActivity.this.N = labelBean;
ECPersonalInfoActivity eCPersonalInfoActivity = ECPersonalInfoActivity.this;
eCPersonalInfoActivity.agvEducation.setContentText(eCPersonalInfoActivity.N.label);
ECPersonalInfoActivity.this.C.c(ECPersonalInfoActivity.this.agvEducation);
}
@Override
public void c() {
}
});
this.agvEducation.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
ECPersonalInfoActivity.this.v2(view);
}
});
}
public String y2(String str) {
return (TextUtils.isEmpty(str) || FieldRuleUtils.f(str)) ? "" : getString(R.string.easycash_phone_number_check_tip);
}
private void z1(AuthGeneralView authGeneralView, final int i) {
authGeneralView.getEtContent().setFilters(new InputFilter[]{CharFilterForMeiZu.b()});
authGeneralView.getEtContent().setInputType(524433);
authGeneralView.getEtContent().setTypeface(Typeface.defaultFromStyle(1));
authGeneralView.getIvRight().setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
ECPersonalInfoActivity.this.w2(i, view);
}
});
V2(authGeneralView);
q1(authGeneralView);
}
@SensorsDataInstrumented
public void z2(View view) {
this.G.d();
SensorsDataAutoTrackHelper.trackViewOnClick(view);
AutoTrackHelper.trackViewOnClick(view);
}
@Override
protected void B(@NonNull Bundle bundle) {
super.B(bundle);
this.B = bundle.getStringArrayList("minimaListPersonalInfoTypeList");
this.N = (LabelBean) bundle.getSerializable("paramEducation");
this.L = (LabelBean) bundle.getSerializable("paramIndustry");
this.M = (LabelBean) bundle.getSerializable("paramVocation");
this.O = (Date) bundle.getSerializable("paramStartWorkTime");
this.P = (LabelBean) bundle.getSerializable("paramLoanUse");
this.Q = bundle.getString("paramMonthIncome");
this.R = (LabelBean) bundle.getSerializable("paramProvince");
this.S = (LabelBean) bundle.getSerializable("paramCity");
this.T = (LabelBean) bundle.getSerializable("paramDistrict");
this.U = (LabelBean) bundle.getSerializable("paramVillage");
this.V = bundle.getString("paramCompanyAddress");
this.W = bundle.getString("paramCompanyPhone");
this.X = (LabelBean) bundle.getSerializable("paramRelationShip");
this.Y = bundle.getString("emergencyContactName");
this.Z = bundle.getString("emergencyContactPhone");
this.f5a0 = (LabelBean) bundle.getSerializable("paramRelationShipOther");
this.f6b0 = bundle.getString("emergencyContactNameOther");
this.f7c0 = bundle.getString("emergencyContactPhoneOther");
}
@Override
protected void D() {
super.D();
M1();
y1();
E1();
initStatWorkTime();
G1();
O1();
N1();
x1();
C1();
D1();
J1();
AuthBusinessProcessor.a().e(this);
}
@Override
protected void N(@NonNull Bundle bundle) {
super.N(bundle);
bundle.putStringArrayList("minimaListPersonalInfoTypeList", this.B);
bundle.putSerializable("paramEducation", this.N);
bundle.putSerializable("paramIndustry", this.L);
bundle.putSerializable("paramVocation", this.M);
bundle.putSerializable("paramStartWorkTime", this.O);
bundle.putSerializable("paramLoanUse", this.P);
bundle.putString("paramMonthIncome", this.agvMonthlyIncome.getTrimmedText());
bundle.putSerializable("paramProvince", this.R);
bundle.putSerializable("paramCity", this.S);
bundle.putSerializable("paramDistrict", this.T);
bundle.putSerializable("paramVillage", this.U);
bundle.putString("paramCompanyAddress", this.agvWorkAddress.getEtContent().getText().toString());
bundle.putString("paramCompanyPhone", this.W);
bundle.putSerializable("paramRelationShip", this.X);
bundle.putString("emergencyContactName", this.agvEmergencyContactName.getTrimmedText());
bundle.putString("emergencyContactPhone", this.agvEmergencyContactPhoneNumber.getTrimmedText());
bundle.putSerializable("paramRelationShipOther", this.f5a0);
bundle.putString("emergencyContactNameOther", this.agvEmergencyContactNameOther.getTrimmedText());
bundle.putString("emergencyContactPhoneOther", this.agvEmergencyContactPhoneNumberOther.getTrimmedText());
}
void c3(View view) {
int[] iArr = new int[2];
view.getLocationInWindow(iArr);
if (iArr[1] > ScreenUtils.d(this) / 2) {
SmoothScrollUtils.c(this.scrollView, view);
}
}
public void clickContact(int i) {
if (BaseUtils.l()) {
return;
}
openSysContactApp(i);
}
@Override
public boolean dispatchTouchEvent(MotionEvent motionEvent) {
if (motionEvent.getAction() == 0) {
View currentFocus = getCurrentFocus();
if (currentFocus instanceof EditText) {
Rect rect = new Rect();
currentFocus.getGlobalVisibleRect(rect);
if (!rect.contains((int) motionEvent.getRawX(), (int) motionEvent.getRawY())) {
currentFocus.clearFocus();
}
}
}
return super.dispatchTouchEvent(motionEvent);
}
public void displayAddressDlg() {
if (P1()) {
this.J.k();
}
this.J.show();
}
@Override
public int getLayoutID() {
return R.layout.easycash_activity_personal_info;
}
public String getSeparatorString(char c) {
return c == '.' ? "\\." : String.valueOf(c);
}
@Override
public String getTrackUrl() {
return j0.b.a(this);
}
public void initStatWorkTime() {
if (!isSupportType(MinimaListPersonalInfoType.LENGTH_OF_EMPLOYMENT)) {
this.agvStartWorkTime.setVisibility(8);
return;
}
this.agvStartWorkTime.setVisibility(0);
TwoRowSelectCompanion twoRowSelectCompanion = new TwoRowSelectCompanion(getString(R.string.easycash_start_work_time), this.agvStartWorkTime, this);
this.E = twoRowSelectCompanion;
twoRowSelectCompanion.g(new TwoRowSelectCompanion.TwoRowSelectViewListener() {
@Override
public void a() {
ECPersonalInfoActivity.this.E.f(ECPersonalInfoActivity.this.F1());
ECPersonalInfoActivity.this.E.i();
}
@Override
public void b(View view, LabelBean labelBean, LabelBean labelBean2) {
Date b = EcFormatUtil.b(labelBean2.value + "/" + labelBean.value, "MM/yyyy");
ECPersonalInfoActivity.this.O = b;
ECPersonalInfoActivity eCPersonalInfoActivity = ECPersonalInfoActivity.this;
eCPersonalInfoActivity.agvStartWorkTime.setContentText(eCPersonalInfoActivity.r1(b));
ECPersonalInfoActivity.this.C.c(ECPersonalInfoActivity.this.agvStartWorkTime);
}
@Override
public void c() {
com.lingyue.easycash.widght.selectLabelBeanView.e.a(this);
}
});
this.agvStartWorkTime.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
ECPersonalInfoActivity.this.D2(view);
}
});
}
@Override
public boolean isNeedProcessScreenShot() {
return j0.a.a(this);
}
public boolean isSupportType(MinimaListPersonalInfoType minimaListPersonalInfoType) {
return !CollectionUtils.f(this.B) && this.B.contains(minimaListPersonalInfoType.name());
}
@Override
protected void onActivityResult(int i, int i2, Intent intent) {
if (i == 1001) {
if (i2 == -1) {
b3(intent, this.agvEmergencyContactName, this.agvEmergencyContactPhoneNumber);
}
} else if (i != 1002) {
super.onActivityResult(i, i2, intent);
} else if (i2 == -1) {
b3(intent, this.agvEmergencyContactNameOther, this.agvEmergencyContactPhoneNumberOther);
}
}
public void F2(AddressSelectEvent addressSelectEvent) {
LabelBean labelBean;
if (addressSelectEvent == null || (labelBean = addressSelectEvent.provinceLabelBean) == null) {
return;
}
this.R = labelBean;
this.S = addressSelectEvent.cityLabelBean;
this.T = addressSelectEvent.districtLabelBean;
this.U = addressSelectEvent.villageLabelBean;
StringBuilder sb = new StringBuilder(labelBean.label);
if (this.S != null) {
sb.append(", ");
sb.append(this.S.label);
}
if (this.T != null) {
sb.append(", ");
sb.append(this.T.label);
}
if (this.U != null) {
sb.append(", ");
sb.append(this.U.label);
}
this.agvWorkAddressCity.setContentText(sb.toString());
}
public void onBackPressed() {
if (this.userSession.b().canEnterMinimaListProcess) {
super/*androidx.activity.ComponentActivity*/.onBackPressed();
} else {
AuthBackTipsDialogUtil.g(this, "8");
}
}
@Override
protected void onCreate(Bundle bundle) {
businessTransaction("UserAuthOrder");
super.onCreate(bundle);
}
@OnClick({R.id.btn_next_step})
public void onViewClicked(View view) {
if (BaseUtils.l()) {
return;
}
T2();
}
public void openSysContactApp(int i) {
Intent intent = new Intent("android.intent.action.PICK");
intent.setType("vnd.android.cursor.dir/phone_v2");
if (intent.resolveActivity(getPackageManager()) != null) {
startActivityForResult(intent, i);
}
}
@Override
public Disposable runOnActiveEvent(Runnable runnable) {
return com.lingyue.idnbaselib.framework.lifecycle.m.a(this, runnable);
}
@Override
@SuppressLint({"CheckResult"})
public Disposable runOnCreated(@NonNull Runnable runnable) {
return com.lingyue.idnbaselib.framework.lifecycle.m.b(this, runnable);
}
@Override
@SuppressLint({"CheckResult"})
public Disposable runOnDestroy(@NonNull Runnable runnable) {
return com.lingyue.idnbaselib.framework.lifecycle.m.c(this, runnable);
}
@Override
@SuppressLint({"CheckResult"})
public Disposable runOnEvent(@NonNull LifecycleEvent lifecycleEvent, @Nullable Runnable runnable) {
return com.lingyue.idnbaselib.framework.lifecycle.m.d(this, lifecycleEvent, runnable);
}
@Override
public Disposable runOnEvents(@NonNull LifecycleEvent[] lifecycleEventArr, @Nullable Runnable runnable) {
return com.lingyue.idnbaselib.framework.lifecycle.m.e(this, lifecycleEventArr, runnable);
}
@Override
protected void z() {
super.z();
L1();
v1();
I1();
H1();
s1();
L();
d3();
}
}