174 lines
6.3 KiB
Java
174 lines
6.3 KiB
Java
|
package com.scb.phone.view.fragment.easycash.salesheets;
|
||
|
|
||
|
import android.content.Intent;
|
||
|
import android.net.Uri;
|
||
|
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.huawei.hms.support.api.entity.common.CommonConstant;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.view.activity.BaseActivity;
|
||
|
import com.scb.phone.view.activity.easycash.speedycash.LoanTermsConditionsActivity;
|
||
|
import com.scb.phone.view.adapter.easycash.EasycashSalesheetAdapter;
|
||
|
import com.scb.phone.view.adapter.easycash.EasycashSalesheetHeaderAdapter;
|
||
|
import com.scb.phone.view.fragment.easycash.salesheets.EasycashSalesheetIndexFragment;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.List;
|
||
|
import o.BQD;
|
||
|
import o.C0371Fd;
|
||
|
import o.C14831gS;
|
||
|
import o.C16962sl;
|
||
|
import o.C4677beg;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.InterfaceC6621cYR;
|
||
|
import o.LS;
|
||
|
import o.LZ;
|
||
|
import o.Lld;
|
||
|
import o.ZI;
|
||
|
import o.fKT;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class EasycashSalesheetIndexFragment extends Hilt_EasycashSalesheetIndexFragment implements InterfaceC6621cYR.qPj {
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C4677beg easycashSalesheetProductsPresenter;
|
||
|
|
||
|
@BindView
|
||
|
RecyclerView easycashSalesheetsRecyclerView;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public Lld tracker;
|
||
|
|
||
|
@Override // o.InterfaceC9652dno
|
||
|
public final void A() {
|
||
|
}
|
||
|
|
||
|
public static EasycashSalesheetIndexFragment a(List<LZ> list) {
|
||
|
EasycashSalesheetIndexFragment easycashSalesheetIndexFragment = new EasycashSalesheetIndexFragment();
|
||
|
Bundle bundle = new Bundle();
|
||
|
bundle.putParcelableArrayList("com.scb.phone.SALESHEET_LIST_DISPLAY", (ArrayList) list);
|
||
|
easycashSalesheetIndexFragment.setArguments(bundle);
|
||
|
return easycashSalesheetIndexFragment;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||
|
View inflate = layoutInflater.inflate(R.layout.2131559614, viewGroup, false);
|
||
|
ButterKnife.c(this, inflate);
|
||
|
this.easycashSalesheetProductsPresenter.e((C4677beg) this);
|
||
|
if (getArguments() != null && getArguments().getParcelableArrayList("com.scb.phone.SALESHEET_LIST_DISPLAY") != null) {
|
||
|
C4677beg c4677beg = this.easycashSalesheetProductsPresenter;
|
||
|
final ArrayList parcelableArrayList = getArguments().getParcelableArrayList("com.scb.phone.SALESHEET_LIST_DISPLAY");
|
||
|
if (parcelableArrayList != null && !parcelableArrayList.isEmpty()) {
|
||
|
ZI.IeS ieS = new ZI.IeS(parcelableArrayList) { // from class: o.beh
|
||
|
private List a;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
((InterfaceC6621cYR.qPj) obj).c(this.a);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = parcelableArrayList;
|
||
|
}
|
||
|
};
|
||
|
if (c4677beg.f != 0) {
|
||
|
ieS.e(c4677beg.f);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return inflate;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6621cYR.qPj
|
||
|
public final void c(List<LZ> list) {
|
||
|
if (getContext() != null) {
|
||
|
EasycashSalesheetHeaderAdapter easycashSalesheetHeaderAdapter = new EasycashSalesheetHeaderAdapter(getContext(), list, new EasycashSalesheetAdapter.HBt(this) { // from class: o.eXJ
|
||
|
private EasycashSalesheetIndexFragment c;
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.easycash.EasycashSalesheetAdapter.HBt
|
||
|
public final void e(LS ls) {
|
||
|
EasycashSalesheetIndexFragment.d(this.c, ls);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = this;
|
||
|
}
|
||
|
});
|
||
|
RecyclerView recyclerView = this.easycashSalesheetsRecyclerView;
|
||
|
getContext();
|
||
|
recyclerView.setLayoutManager(new LinearLayoutManager());
|
||
|
this.easycashSalesheetsRecyclerView.setHasFixedSize(true);
|
||
|
this.easycashSalesheetsRecyclerView.setAdapter(easycashSalesheetHeaderAdapter);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9652dno
|
||
|
public final void a(C0371Fd c0371Fd) {
|
||
|
startActivity(LoanTermsConditionsActivity.aeS_(requireContext(), c0371Fd, false));
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6621cYR.qPj
|
||
|
public final void e(String str, String str2) {
|
||
|
Intent intent = new Intent(CommonConstant.ACTION.HWID_SCHEME_URL);
|
||
|
C14831gS c14831gS = C14831gS.d;
|
||
|
intent.setData(Uri.parse(C14831gS.c(str, str2, false)));
|
||
|
startActivity(intent);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6621cYR.qPj
|
||
|
public final void d(C0371Fd c0371Fd) {
|
||
|
Intent intent = new Intent(CommonConstant.ACTION.HWID_SCHEME_URL);
|
||
|
C14831gS c14831gS = C14831gS.d;
|
||
|
intent.setData(Uri.parse(C14831gS.d(c0371Fd.j, c0371Fd.k)));
|
||
|
startActivity(intent);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6621cYR.qPj
|
||
|
public final void d(String str) {
|
||
|
this.tracker.a("product_type", str);
|
||
|
Lld lld = this.tracker;
|
||
|
if (getActivity() != null) {
|
||
|
lld.c(((BaseActivity) getActivity()).scbAnalytics, "apply_loan_salesheet");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
||
|
public void onDestroy() {
|
||
|
super.onDestroy();
|
||
|
this.easycashSalesheetProductsPresenter.w_();
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void d(EasycashSalesheetIndexFragment easycashSalesheetIndexFragment, final LS ls) {
|
||
|
C4677beg c4677beg = easycashSalesheetIndexFragment.easycashSalesheetProductsPresenter;
|
||
|
if (c4677beg.f != 0) {
|
||
|
c4677beg.f.y();
|
||
|
}
|
||
|
C16962sl c16962sl = c4677beg.b;
|
||
|
BQD c = C16962sl.c(ls.b, "SALE_SHEET");
|
||
|
ZI.IeS ieS = new ZI.IeS(ls) { // from class: o.bee
|
||
|
private LS a;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
((InterfaceC6621cYR.qPj) obj).d(this.a.b);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = ls;
|
||
|
}
|
||
|
};
|
||
|
if (c4677beg.f != 0) {
|
||
|
ieS.e(c4677beg.f);
|
||
|
}
|
||
|
c4677beg.c.a(c);
|
||
|
fKT fkt = c4677beg.c;
|
||
|
fkt.d(fkt.i, new C4677beg.HBt(c4677beg, ls));
|
||
|
}
|
||
|
}
|