what-the-bank/sources/com/scb/phone/view/fragment/easycash/declinencb/EasycashDeclineNCBResultFra...

144 lines
4.3 KiB
Java

package com.scb.phone.view.fragment.easycash.declinencb;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.fragment.app.FragmentActivity;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.scb.phone.R;
import com.scb.phone.view.activity.BaseActivityWithFragment;
import com.scb.phone.view.activity.easycash.EasycashLandingActivity;
import com.scb.phone.view.fragment.BaseFragment;
import o.C14957gcv;
import o.InterfaceC13391fZD;
import o.InterfaceC9207dfP;
import o.ZI;
import o.aUQ;
/* loaded from: classes5.dex */
public final class EasycashDeclineNCBResultFragment extends Hilt_EasycashDeclineNCBResultFragment implements InterfaceC9207dfP {
public static final IeS d = new IeS(0);
@InterfaceC13391fZD
public aUQ presenter;
@BindView
public AppCompatTextView tvFailedDescription;
/* loaded from: classes5.dex */
public static final class IeS {
private IeS() {
}
public /* synthetic */ IeS(byte b) {
this();
}
}
@Override // androidx.fragment.app.Fragment
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
C14957gcv.e(layoutInflater, "");
View inflate = layoutInflater.inflate(R.layout.2131559594, viewGroup, false);
aUQ auq = this.presenter;
if (auq == null) {
C14957gcv.a("");
auq = null;
}
auq.e((aUQ) this);
((BaseFragment) this).a = ButterKnife.c(this, inflate);
C14957gcv.c(inflate, "");
return inflate;
}
@Override // androidx.fragment.app.Fragment
public final void onViewCreated(View view, Bundle bundle) {
C14957gcv.e(view, "");
super.onViewCreated(view, bundle);
aUQ auq = this.presenter;
if (auq == null) {
C14957gcv.a("");
auq = null;
}
Bundle arguments = getArguments();
final String string = arguments != null ? arguments.getString("CARD_COMPANY_EXTRA") : null;
if (string == null) {
string = "";
}
C14957gcv.e(string, "");
ZI.IeS ieS = new ZI.IeS(string) { // from class: o.aUP
private String d;
@Override // o.ZI.IeS
public final void e(Object obj) {
aUQ.a(this.d, (InterfaceC9207dfP) obj);
}
{
this.d = string;
}
};
if (auq.f != 0) {
ieS.e(auq.f);
}
}
@OnClick
public final void onClickBackToHomePage() {
final aUQ auq = this.presenter;
if (auq == null) {
C14957gcv.a("");
auq = null;
}
ZI.IeS ieS = new ZI.IeS(auq) { // from class: o.aUZ
private aUQ e;
@Override // o.ZI.IeS
public final void e(Object obj) {
aUQ.a(this.e, (InterfaceC9207dfP) obj);
}
{
this.e = auq;
}
};
if (auq.f != 0) {
ieS.e(auq.f);
}
}
@Override // o.InterfaceC9207dfP
public final void d() {
AppCompatTextView appCompatTextView = this.tvFailedDescription;
if (appCompatTextView == null) {
C14957gcv.a("");
appCompatTextView = null;
}
appCompatTextView.setText(getString(R.string.easycash_decline_ncb_result_description_b2k));
}
@Override // o.InterfaceC9207dfP
public final void a() {
AppCompatTextView appCompatTextView = this.tvFailedDescription;
if (appCompatTextView == null) {
C14957gcv.a("");
appCompatTextView = null;
}
appCompatTextView.setText(getString(R.string.easycash_decline_ncb_result_description_cdx));
}
@Override // o.InterfaceC9207dfP
public final void d(String str) {
C14957gcv.e(str, "");
FragmentActivity activity = getActivity();
BaseActivityWithFragment baseActivityWithFragment = activity instanceof BaseActivityWithFragment ? (BaseActivityWithFragment) activity : null;
if (baseActivityWithFragment != null) {
baseActivityWithFragment.c_(str);
}
EasycashLandingActivity.c(getContext());
}
}