210 lines
6.5 KiB
Java
210 lines
6.5 KiB
Java
package com.scb.phone.view.fragment.hml.businessowner;
|
|
|
|
import android.content.Context;
|
|
import android.os.Bundle;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.GridView;
|
|
import android.widget.ListAdapter;
|
|
import butterknife.BindView;
|
|
import butterknife.ButterKnife;
|
|
import com.scb.phone.R;
|
|
import com.scb.phone.view.adapter.hml.HmlBanksGridAdapter;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import o.AbstractC14961gcz;
|
|
import o.C14866gag;
|
|
import o.C14957gcv;
|
|
import o.C15768iU;
|
|
import o.C5601bwD;
|
|
import o.InterfaceC13391fZD;
|
|
import o.InterfaceC13393fZL;
|
|
import o.InterfaceC14890gbN;
|
|
import o.InterfaceC14894gbR;
|
|
import o.InterfaceC17396wQp;
|
|
import o.InterfaceC9311dhO;
|
|
import o.LEE;
|
|
import o.NT;
|
|
import o.RxX;
|
|
import o.dRK;
|
|
import o.fZZ;
|
|
import o.pug;
|
|
import o.yGw;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class HmlOperatingBankFragment extends Hilt_HmlOperatingBankFragment implements InterfaceC9311dhO {
|
|
public static final HBt c = new HBt(0);
|
|
|
|
@BindView
|
|
public GridView bankGrid;
|
|
private HmlBanksGridAdapter d;
|
|
private final InterfaceC13393fZL i;
|
|
|
|
@InterfaceC13391fZD
|
|
public C5601bwD presenter;
|
|
|
|
public HmlOperatingBankFragment() {
|
|
LWm lWm = new LWm(this);
|
|
C14957gcv.e(lWm, "");
|
|
this.i = new fZZ(lWm);
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
static final class LWm extends AbstractC14961gcz implements InterfaceC14890gbN<dRK> {
|
|
private HmlOperatingBankFragment b;
|
|
|
|
@Override // o.InterfaceC14890gbN
|
|
public final /* synthetic */ dRK invoke() {
|
|
InterfaceC17396wQp activity = this.b.getActivity();
|
|
C14957gcv.d(activity, "");
|
|
return (dRK) activity;
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
LWm(HmlOperatingBankFragment hmlOperatingBankFragment) {
|
|
super(0);
|
|
this.b = hmlOperatingBankFragment;
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public static final class HBt {
|
|
private HBt() {
|
|
}
|
|
|
|
public /* synthetic */ HBt(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.2131559711, viewGroup, false);
|
|
ButterKnife.c(this, inflate);
|
|
Context context = getContext();
|
|
C5601bwD c5601bwD = null;
|
|
if (context != null) {
|
|
C14957gcv.c(context, "");
|
|
this.d = new HmlBanksGridAdapter(context, new RVV(this));
|
|
GridView gridView = this.bankGrid;
|
|
if (gridView == null) {
|
|
C14957gcv.a("");
|
|
gridView = null;
|
|
}
|
|
gridView.setAdapter((ListAdapter) this.d);
|
|
}
|
|
C5601bwD c5601bwD2 = this.presenter;
|
|
if (c5601bwD2 != null) {
|
|
c5601bwD = c5601bwD2;
|
|
} else {
|
|
C14957gcv.a("");
|
|
}
|
|
c5601bwD.e((C5601bwD) this);
|
|
c("p10x1_business_main_op_account_bank", new pug("user_type", "etb"));
|
|
return inflate;
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<Integer, C14866gag> {
|
|
private HmlOperatingBankFragment e;
|
|
|
|
@Override // o.InterfaceC14894gbR
|
|
public final /* synthetic */ C14866gag invoke(Integer num) {
|
|
Object obj;
|
|
int intValue = num.intValue();
|
|
C5601bwD c5601bwD = this.e.presenter;
|
|
LEE lee = null;
|
|
if (c5601bwD == null) {
|
|
C14957gcv.a("");
|
|
c5601bwD = null;
|
|
}
|
|
if (c5601bwD.f != 0) {
|
|
c5601bwD.f.y();
|
|
}
|
|
try {
|
|
Iterator<T> it = c5601bwD.c.iterator();
|
|
while (true) {
|
|
if (!it.hasNext()) {
|
|
obj = null;
|
|
break;
|
|
}
|
|
obj = it.next();
|
|
String str = ((LEE) obj).c;
|
|
C14957gcv.c((Object) str, "");
|
|
if (Integer.parseInt(str) == intValue) {
|
|
break;
|
|
}
|
|
}
|
|
lee = (LEE) obj;
|
|
} catch (NumberFormatException unused) {
|
|
}
|
|
C15768iU c15768iU = c5601bwD.b;
|
|
C5601bwD.IeS ieS = new C5601bwD.IeS(c5601bwD);
|
|
C5601bwD.HBt hBt = new C5601bwD.HBt(c5601bwD);
|
|
C14957gcv.e(ieS, "");
|
|
C14957gcv.e(hBt, "");
|
|
c15768iU.d.d(ieS, hBt, new RxX.LWm(lee), c15768iU.a);
|
|
return C14866gag.c;
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
RVV(HmlOperatingBankFragment hmlOperatingBankFragment) {
|
|
super(1);
|
|
this.e = hmlOperatingBankFragment;
|
|
}
|
|
}
|
|
|
|
@Override // androidx.fragment.app.Fragment
|
|
public final void onCreate(Bundle bundle) {
|
|
super.onCreate(bundle);
|
|
C5601bwD c5601bwD = this.presenter;
|
|
if (c5601bwD == null) {
|
|
C14957gcv.a("");
|
|
c5601bwD = null;
|
|
}
|
|
String W = W();
|
|
C14957gcv.c((Object) W, "");
|
|
C14957gcv.e(W, "");
|
|
if (c5601bwD.f != 0) {
|
|
c5601bwD.f.y();
|
|
}
|
|
C15768iU c15768iU = c5601bwD.b;
|
|
C5601bwD.RVV rvv = new C5601bwD.RVV(c5601bwD);
|
|
C5601bwD.Sts sts = new C5601bwD.Sts(c5601bwD);
|
|
C14957gcv.e(rvv, "");
|
|
C14957gcv.e(sts, "");
|
|
C14957gcv.e(W, "");
|
|
yGw ygw = c15768iU.b;
|
|
ygw.d(ygw.e(W), new C15768iU.IeS(rvv, sts));
|
|
}
|
|
|
|
@Override // o.InterfaceC9311dhO
|
|
public final void e(List<NT> list) {
|
|
C14957gcv.e(list, "");
|
|
HmlBanksGridAdapter hmlBanksGridAdapter = this.d;
|
|
if (hmlBanksGridAdapter != null) {
|
|
C14957gcv.e(list, "");
|
|
hmlBanksGridAdapter.a = list;
|
|
hmlBanksGridAdapter.notifyDataSetChanged();
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC9311dhO
|
|
public final void d() {
|
|
((dRK) this.i.e()).g();
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
|
public final void onDestroy() {
|
|
C5601bwD c5601bwD = this.presenter;
|
|
if (c5601bwD == null) {
|
|
C14957gcv.a("");
|
|
c5601bwD = null;
|
|
}
|
|
c5601bwD.w_();
|
|
super.onDestroy();
|
|
}
|
|
}
|