what-the-bank/sources/com/scb/phone/view/fragment/profilemanagement/promptpay/ManagePromptpayLandingFragm...

100 lines
3.5 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.profilemanagement.promptpay;
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.profilemanagement.promptpay.LinkAndUnlinkPromptPayActivity;
import com.scb.phone.view.adapter.profilemanagement.ManagePromptpayProxyAdapter;
import com.scb.phone.view.fragment.profilemanagement.promptpay.ManagePromptpayLandingFragment;
import java.util.List;
import java.util.Objects;
import o.C7750cuH;
import o.InterfaceC13391fZD;
import o.InterfaceC9530dlV;
import o.UP;
import o.ZI;
/* loaded from: classes5.dex */
public class ManagePromptpayLandingFragment extends Hilt_ManagePromptpayLandingFragment implements InterfaceC9530dlV {
private ManagePromptpayProxyAdapter d;
@InterfaceC13391fZD
public C7750cuH managePromptpayLandingPresenter;
@BindView
RecyclerView recyclerView;
public static ManagePromptpayLandingFragment d() {
return new ManagePromptpayLandingFragment();
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
super.onCreateView(layoutInflater, viewGroup, bundle);
View inflate = layoutInflater.inflate(R.layout.2131559751, viewGroup, false);
ButterKnife.c(this, inflate);
getContext();
this.recyclerView.setLayoutManager(new LinearLayoutManager(1, false));
final C7750cuH c7750cuH = this.managePromptpayLandingPresenter;
Objects.requireNonNull(c7750cuH);
ManagePromptpayProxyAdapter managePromptpayProxyAdapter = new ManagePromptpayProxyAdapter(new ManagePromptpayProxyAdapter.LWm(c7750cuH) { // from class: o.fvr
private C7750cuH b;
@Override // com.scb.phone.view.adapter.profilemanagement.ManagePromptpayProxyAdapter.LWm
public final void d(UP up) {
ManagePromptpayLandingFragment.a(this.b, up);
}
{
this.b = c7750cuH;
}
});
this.d = managePromptpayProxyAdapter;
this.recyclerView.setAdapter(managePromptpayProxyAdapter);
this.managePromptpayLandingPresenter.e((C7750cuH) this);
return inflate;
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onDestroyView() {
this.managePromptpayLandingPresenter.w_();
super.onDestroyView();
}
@Override // o.InterfaceC9530dlV
public final void b(List<UP> list) {
ManagePromptpayProxyAdapter managePromptpayProxyAdapter = this.d;
managePromptpayProxyAdapter.a = list;
managePromptpayProxyAdapter.notifyDataSetChanged();
}
@Override // o.InterfaceC9530dlV
public final void b(UP up) {
LinkAndUnlinkPromptPayActivity.e(getContext(), up);
}
public static /* synthetic */ void a(C7750cuH c7750cuH, final UP up) {
ZI.IeS ieS = new ZI.IeS(up) { // from class: o.cuJ
private UP e;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9530dlV) obj).b(this.e);
}
{
this.e = up;
}
};
if (c7750cuH.f != 0) {
ieS.e(c7750cuH.f);
}
}
}