package com.scb.phone.view.fragment.bond; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.text.method.LinkMovementMethod; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.huawei.hms.support.api.entity.common.CommonConstant; import com.scb.phone.view.fragment.ErrorFragment; import com.scb.phone.view.fragment.bond.BondNoAccountsErrorFragment; import o.C15715hv; import o.C17046tXv; import o.C2663aip; import o.EV; import o.InterfaceC13391fZD; import o.InterfaceC8985dbF; import o.ZI; /* loaded from: classes5.dex */ public class BondNoAccountsErrorFragment extends Hilt_BondNoAccountsErrorFragment implements InterfaceC8985dbF { @InterfaceC13391fZD public C2663aip bondNoAccountsErrorPresenter; public static BondNoAccountsErrorFragment b(EV ev, String str) { Bundle bundle = new Bundle(); bundle.putParcelable("ERROR_DISPLAY_EXTRA", ev); bundle.putString("BOND_ERROR_DISPLAY_PROSPECTUS", str); BondNoAccountsErrorFragment bondNoAccountsErrorFragment = new BondNoAccountsErrorFragment(); bondNoAccountsErrorFragment.setArguments(bundle); return bondNoAccountsErrorFragment; } @Override // com.scb.phone.view.fragment.ErrorFragment, androidx.fragment.app.Fragment public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { View onCreateView = super.onCreateView(layoutInflater, viewGroup, bundle); this.bondNoAccountsErrorPresenter.e((C2663aip) this); C2663aip c2663aip = this.bondNoAccountsErrorPresenter; final EV ev = ((ErrorFragment) this).c; c2663aip.c = getArguments().getString("BOND_ERROR_DISPLAY_PROSPECTUS"); ZI.IeS ieS = new ZI.IeS(ev) { // from class: o.aiq private EV a; @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC8985dbF) obj).a(r0.b, this.a.e); } { this.a = ev; } }; if (c2663aip.f != 0) { ieS.e(c2663aip.f); } return onCreateView; } @Override // o.InterfaceC8985dbF public final void a(String str, String str2) { this.errorDescription.setText(C17046tXv.Qo_(str, str2, getResources(), new C17046tXv.HBt(this) { // from class: o.eHG private BondNoAccountsErrorFragment a; @Override // o.C17046tXv.HBt public final void e() { BondNoAccountsErrorFragment.a(this.a); } { this.a = this; } }, false, 0, C15715hv.LWm.scb_purple)); this.errorDescription.setMovementMethod(LinkMovementMethod.getInstance()); this.errorDescription.setHighlightColor(0); } @Override // o.InterfaceC8985dbF public final void d(String str) { startActivity(new Intent(CommonConstant.ACTION.HWID_SCHEME_URL, Uri.parse(str))); } public static /* synthetic */ void a(BondNoAccountsErrorFragment bondNoAccountsErrorFragment) { final C2663aip c2663aip = bondNoAccountsErrorFragment.bondNoAccountsErrorPresenter; ZI.IeS ieS = new ZI.IeS(c2663aip) { // from class: o.ain private C2663aip d; @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC8985dbF) obj).d(this.d.c); } { this.d = c2663aip; } }; if (c2663aip.f != 0) { ieS.e(c2663aip.f); } } }