211 lines
7.0 KiB
Java
211 lines
7.0 KiB
Java
|
package com.scb.phone.view.fragment.profilemanagement.manageaccounts;
|
||
|
|
||
|
import android.os.Bundle;
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||
|
import androidx.recyclerview.widget.RecyclerView;
|
||
|
import butterknife.BindView;
|
||
|
import butterknife.ButterKnife;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.view.activity.mwpartner.MwLandingActivity;
|
||
|
import com.scb.phone.view.custom.profilemanagement.AddedAccountManagementSuccessFooterCustomView;
|
||
|
import com.scb.phone.view.fragment.profilemanagement.manageaccounts.AccountManagementSuccessFragment;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.List;
|
||
|
import o.AW;
|
||
|
import o.C11529eh;
|
||
|
import o.C12399exV;
|
||
|
import o.C7781cum;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.InterfaceC8970dar;
|
||
|
import o.UU;
|
||
|
import o.UV;
|
||
|
import o.WEM;
|
||
|
import o.ZI;
|
||
|
import o.jwh;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class AccountManagementSuccessFragment extends Hilt_AccountManagementSuccessFragment implements InterfaceC8970dar.IeS {
|
||
|
private C12399exV c;
|
||
|
|
||
|
@BindView
|
||
|
AddedAccountManagementSuccessFooterCustomView footer;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C7781cum presenter;
|
||
|
|
||
|
@BindView
|
||
|
RecyclerView recyclerView;
|
||
|
|
||
|
public static AccountManagementSuccessFragment d(List<UV> list) {
|
||
|
Bundle bundle = new Bundle();
|
||
|
bundle.putParcelableArrayList("EXTRA_DISPLAY", new ArrayList<>(list));
|
||
|
AccountManagementSuccessFragment accountManagementSuccessFragment = new AccountManagementSuccessFragment();
|
||
|
accountManagementSuccessFragment.setArguments(bundle);
|
||
|
return accountManagementSuccessFragment;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||
|
final boolean z = false;
|
||
|
View inflate = layoutInflater.inflate(R.layout.2131559433, viewGroup, false);
|
||
|
ButterKnife.c(this, inflate);
|
||
|
this.presenter.e((C7781cum) this);
|
||
|
if (getArguments() != null) {
|
||
|
final ArrayList<UV> parcelableArrayList = getArguments().getParcelableArrayList("EXTRA_DISPLAY");
|
||
|
final C7781cum c7781cum = this.presenter;
|
||
|
c7781cum.c = parcelableArrayList;
|
||
|
for (UV uv : parcelableArrayList) {
|
||
|
if (uv.s == 7) {
|
||
|
c7781cum.d = true;
|
||
|
}
|
||
|
if (uv.s == 16) {
|
||
|
z = true;
|
||
|
}
|
||
|
}
|
||
|
ZI.IeS ieS = new ZI.IeS(z) { // from class: o.cuk
|
||
|
private boolean b;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
C7781cum.a(this.b, (InterfaceC8970dar.IeS) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = z;
|
||
|
}
|
||
|
};
|
||
|
if (c7781cum.f != 0) {
|
||
|
ieS.e(c7781cum.f);
|
||
|
}
|
||
|
ZI.IeS ieS2 = new ZI.IeS(c7781cum, parcelableArrayList) { // from class: o.cun
|
||
|
private List c;
|
||
|
private C7781cum e;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
InterfaceC8970dar.IeS ieS3 = (InterfaceC8970dar.IeS) obj;
|
||
|
ieS3.d(this.c, this.e.d);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.e = c7781cum;
|
||
|
this.c = parcelableArrayList;
|
||
|
}
|
||
|
};
|
||
|
if (c7781cum.f != 0) {
|
||
|
ieS2.e(c7781cum.f);
|
||
|
}
|
||
|
}
|
||
|
return inflate;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC8970dar.IeS
|
||
|
public final void d() {
|
||
|
k(true);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC8970dar.IeS
|
||
|
public final void d(List<UV> list, boolean z) {
|
||
|
ArrayList arrayList = new ArrayList(list);
|
||
|
this.footer.setListener(new C12399exV.RVV(this) { // from class: o.fvi
|
||
|
private AccountManagementSuccessFragment d;
|
||
|
|
||
|
@Override // o.C12399exV.RVV
|
||
|
public final void d() {
|
||
|
AccountManagementSuccessFragment.b(this.d);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = this;
|
||
|
}
|
||
|
});
|
||
|
if (z) {
|
||
|
this.footer.setButtonLabel(R.string.account_add_bottom_button_get_started);
|
||
|
}
|
||
|
if (this.c == null) {
|
||
|
this.c = new C12399exV(arrayList, new C12399exV.Sts(this) { // from class: com.scb.phone.view.fragment.profilemanagement.manageaccounts.AccountManagementSuccessFragment.4
|
||
|
private AccountManagementSuccessFragment d;
|
||
|
|
||
|
{
|
||
|
this.d = this;
|
||
|
}
|
||
|
|
||
|
@Override // o.C12399exV.Sts
|
||
|
public final void c(UU uu, String str) {
|
||
|
C7781cum c7781cum = this.d.presenter;
|
||
|
AW aw = c7781cum.e;
|
||
|
C11529eh a = AW.a(uu, str);
|
||
|
if (c7781cum.f != 0) {
|
||
|
c7781cum.f.y();
|
||
|
}
|
||
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.cuo
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
((InterfaceC8970dar.IeS) obj).aN_();
|
||
|
}
|
||
|
};
|
||
|
if (c7781cum.f != 0) {
|
||
|
ieS.e(c7781cum.f);
|
||
|
}
|
||
|
c7781cum.b.c(a);
|
||
|
jwh jwhVar = c7781cum.b;
|
||
|
jwhVar.d(jwhVar.i, new C7781cum.AnonymousClass5(c7781cum, uu, str));
|
||
|
}
|
||
|
|
||
|
@Override // o.C12399exV.Sts
|
||
|
public final void a(UU uu) {
|
||
|
this.d.c.c(uu);
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
getContext();
|
||
|
this.recyclerView.setLayoutManager(new LinearLayoutManager());
|
||
|
this.recyclerView.setItemAnimator(new WEM());
|
||
|
this.recyclerView.setAdapter(this.c);
|
||
|
this.recyclerView.setNestedScrollingEnabled(false);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC8970dar.IeS
|
||
|
public final void a() {
|
||
|
startActivity(MwLandingActivity.aiu_(getContext()));
|
||
|
getActivity().finish();
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC8970dar.IeS
|
||
|
public final void e(List<UV> list) {
|
||
|
this.c.e(list);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC8970dar.IeS
|
||
|
public final void b() {
|
||
|
v("addaccount_success");
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC8970dar.IeS
|
||
|
public final void e() {
|
||
|
v("addaccount_cardx_success");
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void b(AccountManagementSuccessFragment accountManagementSuccessFragment) {
|
||
|
final C7781cum c7781cum = accountManagementSuccessFragment.presenter;
|
||
|
ZI.IeS ieS = new ZI.IeS(c7781cum) { // from class: o.cuq
|
||
|
private C7781cum b;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
C7781cum.c(this.b, (InterfaceC8970dar.IeS) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = c7781cum;
|
||
|
}
|
||
|
};
|
||
|
if (c7781cum.f != 0) {
|
||
|
ieS.e(c7781cum.f);
|
||
|
}
|
||
|
}
|
||
|
}
|