package com.scb.phone.view.fragment.landingpage; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.recyclerview.widget.GridLayoutManager; import androidx.recyclerview.widget.RecyclerView; import butterknife.BindView; import butterknife.ButterKnife; import com.scb.phone.R; import com.scb.phone.view.activity.BaseActivity; import com.scb.phone.view.activity.personalize.ShortcutRouterActivity; import com.scb.phone.view.adapter.landingpage.ShortcutAdapter; import o.C0907Rf; import o.C12374ewx; import o.C4013bNe; import o.EnumC0679Maf; import o.InterfaceC12819fII; import o.InterfaceC13391fZD; import o.InterfaceC6679cZv; import o.ZI; import o.bVA; import o.pug; /* loaded from: classes5.dex */ public class GroupBillerFragment extends Hilt_GroupBillerFragment implements InterfaceC6679cZv, InterfaceC12819fII { private ShortcutAdapter c; private boolean d = false; private C0907Rf.Sts f; @InterfaceC13391fZD public C4013bNe groupBillerPresenter; private GridLayoutManager j; @BindView RecyclerView mRecyclerView; @Override // androidx.fragment.app.Fragment public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { byte b = 0; View inflate = layoutInflater.inflate(R.layout.2131559683, viewGroup, false); ButterKnife.c(this, inflate); C0907Rf.Sts sts = (C0907Rf.Sts) getActivity().getIntent().getParcelableExtra("EXTRA_TILE_PROPERTIES"); this.f = sts; if (sts == null) { getActivity().finish(); } String a = bVA.a((int) this.f.x); if (a != null) { ((BaseActivity) getActivity()).scbAnalytics.c(a); } super.aa(); Y(); Z(); u(this.f.K); this.groupBillerPresenter.e((C4013bNe) this); C4013bNe c4013bNe = this.groupBillerPresenter; long j = this.f.x; if (c4013bNe.f != 0) { c4013bNe.f.v(); } c4013bNe.d.e(j, false); C12374ewx c12374ewx = c4013bNe.d; c12374ewx.d(c12374ewx.i, new C4013bNe.RVV(c4013bNe, b)); return inflate; } @Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment public void onDestroyView() { RecyclerView recyclerView = this.mRecyclerView; if (recyclerView != null) { recyclerView.setItemAnimator(null); this.mRecyclerView.setAdapter(null); this.mRecyclerView = null; } this.c = null; this.j = null; super.onDestroyView(); } @Override // com.scb.phone.view.fragment.BaseFragment public final void aa() { super.aa(); Y(); Z(); u(this.f.K); } @Override // o.InterfaceC6679cZv public final void b(C0907Rf c0907Rf) { this.c = new ShortcutAdapter(getContext(), c0907Rf, this); getContext(); GridLayoutManager gridLayoutManager = new GridLayoutManager(3); this.j = gridLayoutManager; gridLayoutManager.a = new GridLayoutManager.Sts(this, c0907Rf) { // from class: com.scb.phone.view.fragment.landingpage.GroupBillerFragment.2 private GroupBillerFragment c; private C0907Rf f; { this.c = this; this.f = c0907Rf; } @Override // androidx.recyclerview.widget.GridLayoutManager.Sts public final int e(int i) { return this.f.a(i).H; } }; this.mRecyclerView.setLayoutManager(this.j); this.mRecyclerView.setAdapter(this.c); } @Override // o.InterfaceC6679cZv public final void a(C0907Rf.Sts sts) { if (this.d) { return; } this.d = true; ShortcutRouterActivity.b(getContext(), sts); String b = EnumC0679Maf.b(sts.x); if (b != null) { ((BaseActivity) getActivity()).scbAnalytics.e(EnumC0679Maf.a(), new pug(EnumC0679Maf.e(), b)); } } @Override // o.InterfaceC12819fII public final void c(long j) { C4013bNe c4013bNe = this.groupBillerPresenter; final C0907Rf.Sts a = c4013bNe.a.a(j); ZI.IeS ieS = new ZI.IeS(a) { // from class: o.bNd private C0907Rf.Sts a; @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6679cZv) obj).a(this.a); } { this.a = a; } }; if (c4013bNe.f != 0) { ieS.e(c4013bNe.f); } } @Override // com.scb.phone.view.fragment.BaseFragment, o.InterfaceC6638cYp public final void v() { this.mRecyclerView.setVisibility(8); super.v(); } @Override // com.scb.phone.view.fragment.BaseFragment, o.InterfaceC6638cYp public final void aq_() { RecyclerView recyclerView = this.mRecyclerView; if (recyclerView != null) { recyclerView.setVisibility(0); } super.aq_(); } @Override // androidx.fragment.app.Fragment public void onResume() { super.onResume(); this.d = false; } }