121 lines
3.9 KiB
Java
121 lines
3.9 KiB
Java
|
package com.scb.phone.view.fragment.donations;
|
||
|
|
||
|
import android.content.Intent;
|
||
|
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 androidx.viewpager.widget.ViewPager;
|
||
|
import butterknife.BindView;
|
||
|
import butterknife.ButterKnife;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.view.activity.donations.DonationsFoundationDetailsActivity;
|
||
|
import com.scb.phone.view.adapter.donations.DonationsImageSliderPagerAdapter;
|
||
|
import com.scb.phone.view.adapter.donations.DonationsItemListAdapter;
|
||
|
import java.util.List;
|
||
|
import me.relex.circleindicator.CircleIndicator;
|
||
|
import o.C0690Mh;
|
||
|
import o.C0693Mj;
|
||
|
import o.InterfaceC12838fIm;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.JL;
|
||
|
import o.TTa;
|
||
|
import o.aPS;
|
||
|
import o.cYQ;
|
||
|
import o.fIK;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class DonationsLandingFragment extends Hilt_DonationsLandingFragment implements fIK, InterfaceC12838fIm, cYQ.Sts {
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public aPS donationsLandingPresenter;
|
||
|
|
||
|
@BindView
|
||
|
CircleIndicator mCircleIndicator;
|
||
|
|
||
|
@BindView
|
||
|
RecyclerView mRecyclerView;
|
||
|
|
||
|
@BindView
|
||
|
ViewPager mViewPager;
|
||
|
|
||
|
public static DonationsLandingFragment d() {
|
||
|
return new DonationsLandingFragment();
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||
|
byte b = 0;
|
||
|
View inflate = layoutInflater.inflate(R.layout.2131559577, viewGroup, false);
|
||
|
ButterKnife.c(this, inflate);
|
||
|
super.aa();
|
||
|
u(getString(R.string.donation));
|
||
|
Z();
|
||
|
Y();
|
||
|
this.donationsLandingPresenter.e((aPS) this);
|
||
|
aPS aps = this.donationsLandingPresenter;
|
||
|
if (aps.f != 0) {
|
||
|
aps.f.y();
|
||
|
}
|
||
|
aps.a.c();
|
||
|
TTa tTa = aps.a;
|
||
|
tTa.d(tTa.i, new aPS.HBt(aps, b));
|
||
|
return inflate;
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.BaseFragment
|
||
|
public final void aa() {
|
||
|
super.aa();
|
||
|
u(getString(R.string.donation));
|
||
|
Z();
|
||
|
Y();
|
||
|
}
|
||
|
|
||
|
@Override // o.cYQ.Sts
|
||
|
public final void d(C0693Mj c0693Mj) {
|
||
|
c0693Mj.d = getString(R.string.common_error);
|
||
|
C0690Mh c0690Mh = new C0690Mh();
|
||
|
c0690Mh.b = getString(R.string.ok);
|
||
|
c0690Mh.e = C0690Mh.IeS.NAVIGATE_BACK;
|
||
|
c0693Mj.e = c0690Mh;
|
||
|
e(c0693Mj);
|
||
|
}
|
||
|
|
||
|
@Override // o.cYQ.Sts
|
||
|
public final void e(List<JL> list, List<JL> list2) {
|
||
|
if (list2 == null || list == null) {
|
||
|
return;
|
||
|
}
|
||
|
this.mViewPager.setAdapter(new DonationsImageSliderPagerAdapter(getContext(), list, this));
|
||
|
this.mViewPager.setClipToPadding(false);
|
||
|
this.mCircleIndicator.setViewPager(this.mViewPager);
|
||
|
getContext();
|
||
|
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(1, false);
|
||
|
DonationsItemListAdapter donationsItemListAdapter = new DonationsItemListAdapter(getContext(), list2, this);
|
||
|
this.mRecyclerView.setLayoutManager(linearLayoutManager);
|
||
|
this.mRecyclerView.setAdapter(donationsItemListAdapter);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
||
|
public void onDestroy() {
|
||
|
this.donationsLandingPresenter.w_();
|
||
|
super.onDestroy();
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC12838fIm
|
||
|
public final void e(JL jl) {
|
||
|
Intent intent = new Intent(getContext(), (Class<?>) DonationsFoundationDetailsActivity.class);
|
||
|
intent.putExtra("SELECTED_IMAGE_POSITION", jl);
|
||
|
startActivity(intent);
|
||
|
}
|
||
|
|
||
|
@Override // o.fIK
|
||
|
public final void b(JL jl) {
|
||
|
Intent intent = new Intent(getContext(), (Class<?>) DonationsFoundationDetailsActivity.class);
|
||
|
intent.putExtra("SELECTED_IMAGE_POSITION", jl);
|
||
|
startActivity(intent);
|
||
|
}
|
||
|
}
|