180 lines
5.6 KiB
Java
180 lines
5.6 KiB
Java
package com.scb.phone.view.fragment.etb;
|
|
|
|
import android.content.DialogInterface;
|
|
import android.os.Bundle;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.LinearLayout;
|
|
import butterknife.BindView;
|
|
import butterknife.ButterKnife;
|
|
import butterknife.OnClick;
|
|
import com.scb.phone.R;
|
|
import com.scb.phone.view.activity.BaseActivity;
|
|
import com.scb.phone.view.custom.ntb.CustomInformationPanel;
|
|
import java.util.List;
|
|
import o.C0698Mn;
|
|
import o.C0710Mv;
|
|
import o.C0714Mx;
|
|
import o.C4846bhq;
|
|
import o.InterfaceC13391fZD;
|
|
import o.InterfaceC9273dgd;
|
|
import o.NgS;
|
|
import o.SZ;
|
|
import o.UNo;
|
|
import o.ZI;
|
|
import o.qFG;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class EtbPersonalInformationFragment extends Hilt_EtbPersonalInformationFragment implements InterfaceC9273dgd.IeS {
|
|
private C0698Mn d;
|
|
|
|
@InterfaceC13391fZD
|
|
public C4846bhq etbPersonalInformationPresenter;
|
|
private UNo g = new UNo();
|
|
|
|
@BindView
|
|
CustomInformationPanel vContactInfo;
|
|
|
|
@BindView
|
|
LinearLayout vContent;
|
|
|
|
@BindView
|
|
LinearLayout vLayout;
|
|
|
|
@BindView
|
|
CustomInformationPanel vOccupationInfo;
|
|
|
|
@BindView
|
|
CustomInformationPanel vPersonalInfo;
|
|
|
|
@BindView
|
|
LinearLayout vTapToRetry;
|
|
|
|
@Override // o.InterfaceC9713dpA.HBt
|
|
public final boolean p() {
|
|
return true;
|
|
}
|
|
|
|
@Override // o.InterfaceC9713dpA.HBt
|
|
public final int t() {
|
|
return 3;
|
|
}
|
|
|
|
public static EtbPersonalInformationFragment a(C0698Mn c0698Mn, C0714Mx c0714Mx) {
|
|
Bundle bundle = new Bundle();
|
|
bundle.putParcelable("com.scb.phone.view.fragment.etb.ARG_ACCOUNT", c0698Mn);
|
|
bundle.putParcelable("com.scb.phone.view.fragment.etb.ARG_PRODUCT", c0714Mx);
|
|
EtbPersonalInformationFragment etbPersonalInformationFragment = new EtbPersonalInformationFragment();
|
|
etbPersonalInformationFragment.setArguments(bundle);
|
|
return etbPersonalInformationFragment;
|
|
}
|
|
|
|
@Override // androidx.fragment.app.Fragment
|
|
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
|
View inflate = layoutInflater.inflate(R.layout.2131559640, viewGroup, false);
|
|
ButterKnife.c(this, inflate);
|
|
this.etbPersonalInformationPresenter.e((C4846bhq) this);
|
|
if (getArguments() != null) {
|
|
this.d = (C0698Mn) getArguments().getParcelable("com.scb.phone.view.fragment.etb.ARG_ACCOUNT");
|
|
}
|
|
C4846bhq c4846bhq = this.etbPersonalInformationPresenter;
|
|
if (c4846bhq != null) {
|
|
c4846bhq.b();
|
|
}
|
|
UNo uNo = this.g;
|
|
if (getActivity() != null) {
|
|
uNo.c(((BaseActivity) getActivity()).scbAnalytics, "etb_review_info");
|
|
}
|
|
return inflate;
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
|
public void onDestroy() {
|
|
super.onDestroy();
|
|
this.etbPersonalInformationPresenter.w_();
|
|
}
|
|
|
|
@Override // o.InterfaceC9273dgd.IeS
|
|
public final void a(List<SZ> list) {
|
|
this.vLayout.setVisibility(0);
|
|
this.vContent.setVisibility(0);
|
|
this.vTapToRetry.setVisibility(8);
|
|
this.vPersonalInfo.setInformationItemList(list);
|
|
}
|
|
|
|
@Override // o.InterfaceC9273dgd.IeS
|
|
public final void d(List<SZ> list) {
|
|
this.vContactInfo.setInformationItemList(list);
|
|
}
|
|
|
|
@Override // o.InterfaceC9273dgd.IeS
|
|
public final void b(List<SZ> list) {
|
|
this.vOccupationInfo.setInformationItemList(list);
|
|
}
|
|
|
|
@Override // o.InterfaceC9273dgd.IeS
|
|
public final void c(boolean z) {
|
|
this.vLayout.setVisibility(0);
|
|
this.vTapToRetry.setVisibility(z ? 0 : 8);
|
|
this.vContent.setVisibility(z ? 8 : 0);
|
|
}
|
|
|
|
@OnClick
|
|
public void onClickTapToRetry(View view) {
|
|
C4846bhq c4846bhq = this.etbPersonalInformationPresenter;
|
|
if (c4846bhq != null) {
|
|
c4846bhq.b();
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC9273dgd.IeS
|
|
public final void a(C0710Mv c0710Mv) {
|
|
this.k.d(EtbReviewInformationFragment.e(this.d, c0710Mv));
|
|
}
|
|
|
|
@Override // o.InterfaceC9273dgd.IeS
|
|
public final void a() {
|
|
this.k.d(EtbSetDetailFragment.b(this.d, (C0714Mx) getArguments().getParcelable("com.scb.phone.view.fragment.etb.ARG_PRODUCT")));
|
|
}
|
|
|
|
@Override // o.InterfaceC9713dpA.HBt
|
|
public final String q() {
|
|
return getString(R.string.etb_personal_info_title);
|
|
}
|
|
|
|
public static /* synthetic */ void asM_(EtbPersonalInformationFragment etbPersonalInformationFragment, DialogInterface dialogInterface) {
|
|
dialogInterface.dismiss();
|
|
etbPersonalInformationFragment.k(false);
|
|
}
|
|
|
|
@OnClick
|
|
public void onClickNext() {
|
|
C4846bhq c4846bhq = this.etbPersonalInformationPresenter;
|
|
C0698Mn c0698Mn = this.d;
|
|
if (c0698Mn != null) {
|
|
if (c4846bhq.e(c0698Mn.c) || c4846bhq.c(c0698Mn.c)) {
|
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.bhr
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
((InterfaceC9273dgd.IeS) obj).a();
|
|
}
|
|
};
|
|
if (c4846bhq.f != 0) {
|
|
ieS.e(c4846bhq.f);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (c4846bhq.a(c0698Mn.c)) {
|
|
if (c4846bhq.f != 0) {
|
|
c4846bhq.f.y();
|
|
}
|
|
c4846bhq.b.b(qFG.d());
|
|
NgS ngS = c4846bhq.b;
|
|
ngS.d(ngS.i, new C4846bhq.RVV(c4846bhq, c0698Mn));
|
|
}
|
|
}
|
|
}
|
|
}
|