what-the-bank/sources/com/scb/phone/view/fragment/easycash/landing/EasycashLandingEmptyFragmen...

164 lines
6.0 KiB
Java

package com.scb.phone.view.fragment.easycash.landing;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import com.scb.phone.R;
import o.C0663Lq;
import o.C14957gcv;
import o.C2108aXg;
import o.InterfaceC13391fZD;
import o.InterfaceC6621cYR;
import o.TDl;
import o.ZI;
import o.qeC;
/* loaded from: classes5.dex */
public final class EasycashLandingEmptyFragment extends Hilt_EasycashLandingEmptyFragment implements InterfaceC6621cYR.SYO {
private TDl d;
@InterfaceC13391fZD
public C2108aXg easycashLandingEmptyPresenter;
@Override // com.scb.phone.view.fragment.easycash.landing.EasycashBaseLandingFragment
protected final View asx_(ViewGroup viewGroup) {
View inflate = getLayoutInflater().inflate(R.layout.2131559602, viewGroup, false);
int i = R.id.easycash_empty_icon;
ImageView imageView = (ImageView) qeC.e(inflate, R.id.easycash_empty_icon);
if (imageView != null) {
i = R.id.ll_layout_easycash_footer;
LinearLayout linearLayout = (LinearLayout) qeC.e(inflate, R.id.ll_layout_easycash_footer);
if (linearLayout != null) {
i = R.id.tv_easycash_empty_description;
TextView textView = (TextView) qeC.e(inflate, R.id.tv_easycash_empty_description);
if (textView != null) {
i = R.id.tv_easycash_empty_text;
TextView textView2 = (TextView) qeC.e(inflate, R.id.tv_easycash_empty_text);
if (textView2 != null) {
TDl tDl = new TDl((ConstraintLayout) inflate, imageView, linearLayout, textView, textView2);
this.d = tDl;
asv_(tDl.e);
return tDl.d;
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
}
@Override // com.scb.phone.view.fragment.easycash.landing.EasycashBaseLandingFragment, androidx.fragment.app.Fragment
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
Parcelable parcelable;
C14957gcv.e(layoutInflater, "");
View onCreateView = super.onCreateView(layoutInflater, viewGroup, bundle);
C2108aXg c2108aXg = this.easycashLandingEmptyPresenter;
C2108aXg c2108aXg2 = null;
if (c2108aXg == null) {
C14957gcv.a("");
c2108aXg = null;
}
c2108aXg.e((C2108aXg) this);
C2108aXg c2108aXg3 = this.easycashLandingEmptyPresenter;
if (c2108aXg3 == null) {
C14957gcv.a("");
c2108aXg3 = null;
}
a(c2108aXg3);
Bundle arguments = getArguments();
if (arguments != null) {
C14957gcv.c(arguments, "");
if (Build.VERSION.SDK_INT >= 33) {
parcelable = (Parcelable) arguments.getParcelable("com.scb.phone.EXTRA_EMPTY", C0663Lq.class);
} else {
Parcelable parcelable2 = arguments.getParcelable("com.scb.phone.EXTRA_EMPTY");
if (!(parcelable2 instanceof C0663Lq)) {
parcelable2 = null;
}
parcelable = (C0663Lq) parcelable2;
}
final C0663Lq c0663Lq = (C0663Lq) parcelable;
if (c0663Lq != null) {
C2108aXg c2108aXg4 = this.easycashLandingEmptyPresenter;
if (c2108aXg4 != null) {
c2108aXg2 = c2108aXg4;
} else {
C14957gcv.a("");
}
c2108aXg2.e = arguments.getBoolean("com.scb.phone.EXTRA_IS_BANK_CLIENT");
ZI.IeS ieS = new ZI.IeS(c0663Lq) { // from class: o.aXh
private C0663Lq e;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC6621cYR.SYO) obj).d(r0.d, this.e.b);
}
{
this.e = c0663Lq;
}
};
if (c2108aXg2.f != 0) {
ieS.e(c2108aXg2.f);
}
c2108aXg2.b(c0663Lq.a);
}
}
return onCreateView;
}
@Override // o.InterfaceC6621cYR.SYO
public final void d(String str, String str2) {
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
TDl tDl = this.d;
if (tDl != null) {
tDl.a.setText(str);
tDl.c.setText(str2);
}
}
@Override // com.scb.phone.view.fragment.easycash.landing.EasycashBaseLandingFragment, com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public final void onDestroy() {
super.onDestroy();
C2108aXg c2108aXg = null;
this.d = null;
C2108aXg c2108aXg2 = this.easycashLandingEmptyPresenter;
if (c2108aXg2 != null) {
c2108aXg = c2108aXg2;
} else {
C14957gcv.a("");
}
c2108aXg.w_();
}
/* loaded from: classes5.dex */
public static final class RVV {
private RVV() {
}
public /* synthetic */ RVV(byte b) {
this();
}
}
public static final EasycashLandingEmptyFragment e(C0663Lq c0663Lq, boolean z) {
EasycashLandingEmptyFragment easycashLandingEmptyFragment = new EasycashLandingEmptyFragment();
Bundle bundle = new Bundle();
bundle.putParcelable("com.scb.phone.EXTRA_EMPTY", c0663Lq);
bundle.putBoolean("com.scb.phone.EXTRA_IS_BANK_CLIENT", z);
easycashLandingEmptyFragment.setArguments(bundle);
return easycashLandingEmptyFragment;
}
static {
new RVV((byte) 0);
}
}