what-the-bank/sources/com/scb/phone/view/fragment/bulktransfer/SelectBankFragment.java

88 lines
2.9 KiB
Java

package com.scb.phone.view.fragment.bulktransfer;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.scb.phone.R;
import com.scb.phone.view.adapter.transferandpay.transfer.TransferToOthersStep1Adapter;
import com.scb.phone.view.fragment.bulktransfer.SelectBankFragment;
import java.util.List;
import o.C10457eEr;
import o.C1236Yq;
import o.C2830alx;
import o.InterfaceC13391fZD;
import o.InterfaceC6636cYn;
import o.ZI;
import o.iNh;
/* loaded from: classes5.dex */
public class SelectBankFragment extends Hilt_SelectBankFragment implements InterfaceC6636cYn.ZnX {
@BindView
RecyclerView recyclerView;
@InterfaceC13391fZD
public C2830alx selectBankPresenter;
public static SelectBankFragment d() {
return new SelectBankFragment();
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
byte b = 0;
View inflate = layoutInflater.inflate(R.layout.2131559904, viewGroup, false);
ButterKnife.c(this, inflate);
this.selectBankPresenter.e((C2830alx) this);
C2830alx c2830alx = this.selectBankPresenter;
c2830alx.b = W();
ZI.IeS ieS = new ZI.IeS() { // from class: o.alA
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC6636cYn.ZnX) obj).y();
}
};
if (c2830alx.f != 0) {
ieS.e(c2830alx.f);
}
c2830alx.a.d(c2830alx.b);
iNh inh = c2830alx.a;
inh.d(inh.i, new C2830alx.IeS(c2830alx, b));
return inflate;
}
@Override // o.InterfaceC6636cYn.ZnX
public final void e(List<C1236Yq> list) {
this.recyclerView.setAdapter(new TransferToOthersStep1Adapter(list, new TransferToOthersStep1Adapter.HBt(this) { // from class: o.eIt
private SelectBankFragment b;
@Override // com.scb.phone.view.adapter.transferandpay.transfer.TransferToOthersStep1Adapter.HBt
public final void e(C1236Yq c1236Yq) {
SelectBankFragment.c(this.b, c1236Yq);
}
{
this.b = this;
}
}));
this.recyclerView.setNestedScrollingEnabled(false);
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onDestroyView() {
super.onDestroyView();
this.selectBankPresenter.w_();
}
public static /* synthetic */ void c(SelectBankFragment selectBankFragment, C1236Yq c1236Yq) {
Intent intent = new Intent("com.scb.phone.ACTION_SELECT_BANK");
intent.putExtra("com.scb.phone.EXTRA_BANK", c1236Yq);
C10457eEr.aqd_(selectBankFragment, intent);
}
}