package com.scb.phone.view.fragment.insurance; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import androidx.fragment.app.FragmentActivity; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.OnClick; import com.scb.phone.R; import com.scb.phone.view.fragment.BaseFragment; import o.C0804Oy; import o.C14957gcv; import o.C5719byP; import o.InterfaceC13391fZD; import o.InterfaceC9320dhX; import o.OE; import o.ZI; /* loaded from: classes5.dex */ public final class RequestEPolicySuccessFragment extends Hilt_RequestEPolicySuccessFragment implements InterfaceC9320dhX.IeS { public static final LWm d = new LWm(0); @InterfaceC13391fZD public C5719byP presenter; @BindView public TextView tvEmail; @BindView public TextView tvPolicyNo; @BindView public TextView tvProductName; @Override // androidx.fragment.app.Fragment public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { C14957gcv.e(layoutInflater, ""); return layoutInflater.inflate(R.layout.2131559732, viewGroup, false); } @Override // androidx.fragment.app.Fragment public final void onViewCreated(View view, Bundle bundle) { C14957gcv.e(view, ""); super.onViewCreated(view, bundle); ((BaseFragment) this).a = ButterKnife.c(this, view); C5719byP c5719byP = this.presenter; final C5719byP c5719byP2 = null; if (c5719byP == null) { C14957gcv.a(""); c5719byP = null; } c5719byP.e((C5719byP) this); Bundle arguments = getArguments(); if (arguments != null) { final C0804Oy c0804Oy = (C0804Oy) arguments.getParcelable("EXTRA_POLICY_INFO_DISPLAY"); final String string = arguments.getString("EXTRA_EMAIL"); if (c0804Oy == null || string == null || string.length() <= 0) { return; } C5719byP c5719byP3 = this.presenter; if (c5719byP3 != null) { c5719byP2 = c5719byP3; } else { C14957gcv.a(""); } C14957gcv.e(c0804Oy, ""); C14957gcv.e(string, ""); ZI.IeS ieS = new ZI.IeS(c5719byP2, c0804Oy, string) { // from class: o.byO private C0804Oy a; private String b; private C5719byP d; @Override // o.ZI.IeS public final void e(Object obj) { C5719byP.e(this.d, this.a, this.b, (InterfaceC9320dhX.IeS) obj); } { this.d = c5719byP2; this.a = c0804Oy; this.b = string; } }; if (c5719byP2.f != 0) { ieS.e(c5719byP2.f); } } } @Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment public final void onDestroy() { super.onDestroy(); C5719byP c5719byP = this.presenter; if (c5719byP == null) { C14957gcv.a(""); c5719byP = null; } c5719byP.w_(); } @Override // o.InterfaceC9320dhX.IeS public final void a(OE oe) { C14957gcv.e(oe, ""); TextView textView = this.tvProductName; TextView textView2 = null; if (textView == null) { C14957gcv.a(""); textView = null; } textView.setText(oe.e); TextView textView3 = this.tvPolicyNo; if (textView3 == null) { C14957gcv.a(""); textView3 = null; } textView3.setText(oe.d); TextView textView4 = this.tvEmail; if (textView4 != null) { textView2 = textView4; } else { C14957gcv.a(""); } textView2.setText(oe.a); } @OnClick public final void clickReturnToMyInsurance() { FragmentActivity activity = getActivity(); if (activity != null) { activity.finish(); } C5719byP c5719byP = this.presenter; if (c5719byP == null) { C14957gcv.a(""); c5719byP = null; } c5719byP.w_(); } /* loaded from: classes5.dex */ public static final class LWm { private LWm() { } public /* synthetic */ LWm(byte b) { this(); } } }