1488 lines
53 KiB
Java
1488 lines
53 KiB
Java
|
package com.scb.phone.view.adapter.landingpage;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.net.Uri;
|
||
|
import android.text.TextUtils;
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.FrameLayout;
|
||
|
import android.widget.ImageView;
|
||
|
import android.widget.LinearLayout;
|
||
|
import android.widget.RelativeLayout;
|
||
|
import android.widget.TextView;
|
||
|
import androidx.recyclerview.widget.RecyclerView;
|
||
|
import androidx.viewpager.widget.ViewPager;
|
||
|
import butterknife.BindView;
|
||
|
import butterknife.ButterKnife;
|
||
|
import butterknife.Unbinder;
|
||
|
import com.asksira.loopingviewpager.LoopingViewPager;
|
||
|
import com.rd.PageIndicatorView;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.view.adapter.landingpage.TileAdapter;
|
||
|
import com.scb.phone.view.custom.RectangleRelativeLayout;
|
||
|
import com.scb.phone.view.custom.common.DefaultButton;
|
||
|
import com.squareup.picasso.Picasso;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.Collections;
|
||
|
import java.util.List;
|
||
|
import java.util.NoSuchElementException;
|
||
|
import java.util.Objects;
|
||
|
import o.AyW;
|
||
|
import o.BjL;
|
||
|
import o.C0907Rf;
|
||
|
import o.C12354ewd;
|
||
|
import o.C12891fKc;
|
||
|
import o.EnumC14464fth;
|
||
|
import o.EnumC15824isw;
|
||
|
import o.GEP;
|
||
|
import o.InterfaceC12351ewa;
|
||
|
import o.InterfaceC12854fJL;
|
||
|
import o.InterfaceC12980fNE;
|
||
|
import o.InterfaceC16186lzC;
|
||
|
import o.Jel;
|
||
|
import o.JuK;
|
||
|
import o.Mmw;
|
||
|
import o.PRA;
|
||
|
import o.RDs;
|
||
|
import o.YKU;
|
||
|
import o.gjJ;
|
||
|
import o.guQ;
|
||
|
import o.iIq;
|
||
|
import o.nMh;
|
||
|
import o.pyT;
|
||
|
import o.wdQ;
|
||
|
import o.zEQ;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class TileAdapter extends RecyclerView.Sts<BaseHolder> implements iIq<BaseHolder>, InterfaceC12351ewa, InterfaceC16186lzC {
|
||
|
public wdQ b;
|
||
|
private View c;
|
||
|
private View d;
|
||
|
private final vUG g;
|
||
|
private final ZqN i;
|
||
|
private RecyclerView j;
|
||
|
private final InterfaceC12854fJL l;
|
||
|
private final vUG m;
|
||
|
|
||
|
/* renamed from: o, reason: collision with root package name */
|
||
|
private View f8011o;
|
||
|
public final List<C0907Rf.Sts> e = new ArrayList();
|
||
|
private boolean h = false;
|
||
|
public C12354ewd a = new C12354ewd();
|
||
|
private boolean f = false;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public interface ZqN {
|
||
|
void a(boolean z);
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public interface ojQ<T> {
|
||
|
void a(T t);
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public interface vUG {
|
||
|
void b();
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class LearnMoreHolder_ViewBinding extends BaseHolder_ViewBinding {
|
||
|
private LearnMoreHolder c;
|
||
|
|
||
|
public LearnMoreHolder_ViewBinding(LearnMoreHolder learnMoreHolder, View view) {
|
||
|
super(learnMoreHolder, view);
|
||
|
this.c = learnMoreHolder;
|
||
|
learnMoreHolder.backgroundImageView = (ImageView) pyT.e(view, R.id.landing_tile_background, "field 'backgroundImageView'", ImageView.class);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.BaseHolder_ViewBinding, butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
LearnMoreHolder learnMoreHolder = this.c;
|
||
|
if (learnMoreHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.c = null;
|
||
|
learnMoreHolder.backgroundImageView = null;
|
||
|
super.a();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class BaseHolder_ViewBinding implements Unbinder {
|
||
|
private BaseHolder b;
|
||
|
|
||
|
public BaseHolder_ViewBinding(BaseHolder baseHolder, View view) {
|
||
|
this.b = baseHolder;
|
||
|
baseHolder.rectangleRelativeLayout = (RectangleRelativeLayout) pyT.a(view, R.id.rectangle_relative_layout, "field 'rectangleRelativeLayout'", RectangleRelativeLayout.class);
|
||
|
}
|
||
|
|
||
|
@Override // butterknife.Unbinder
|
||
|
public void a() {
|
||
|
BaseHolder baseHolder = this.b;
|
||
|
if (baseHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.b = null;
|
||
|
baseHolder.rectangleRelativeLayout = null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class DemoHolder_ViewBinding extends BaseHolder_ViewBinding {
|
||
|
private DemoHolder b;
|
||
|
|
||
|
public DemoHolder_ViewBinding(DemoHolder demoHolder, View view) {
|
||
|
super(demoHolder, view);
|
||
|
this.b = demoHolder;
|
||
|
demoHolder.backgroundImageView = (ImageView) pyT.e(view, R.id.landing_tile_background, "field 'backgroundImageView'", ImageView.class);
|
||
|
demoHolder.descTextView = (TextView) pyT.e(view, R.id.landing_tile_text, "field 'descTextView'", TextView.class);
|
||
|
demoHolder.iconImageView = (ImageView) pyT.e(view, R.id.landing_tile_icon, "field 'iconImageView'", ImageView.class);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.BaseHolder_ViewBinding, butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
DemoHolder demoHolder = this.b;
|
||
|
if (demoHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.b = null;
|
||
|
demoHolder.backgroundImageView = null;
|
||
|
demoHolder.descTextView = null;
|
||
|
demoHolder.iconImageView = null;
|
||
|
super.a();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class GroupHolder_ViewBinding extends BaseHolder_ViewBinding {
|
||
|
private GroupHolder b;
|
||
|
|
||
|
public GroupHolder_ViewBinding(GroupHolder groupHolder, View view) {
|
||
|
super(groupHolder, view);
|
||
|
this.b = groupHolder;
|
||
|
groupHolder.backgroundImageView = (ImageView) pyT.e(view, R.id.landing_tile_background, "field 'backgroundImageView'", ImageView.class);
|
||
|
groupHolder.placeHolderView = pyT.a(view, R.id.landing_icon_place_holder, "field 'placeHolderView'");
|
||
|
groupHolder.iconImageView = (ImageView) pyT.e(view, R.id.landing_tile_icon, "field 'iconImageView'", ImageView.class);
|
||
|
groupHolder.descTextView = (TextView) pyT.e(view, R.id.landing_tile_text, "field 'descTextView'", TextView.class);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.BaseHolder_ViewBinding, butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
GroupHolder groupHolder = this.b;
|
||
|
if (groupHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.b = null;
|
||
|
groupHolder.backgroundImageView = null;
|
||
|
groupHolder.placeHolderView = null;
|
||
|
groupHolder.iconImageView = null;
|
||
|
groupHolder.descTextView = null;
|
||
|
super.a();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class NtbScbCustomerHolder_ViewBinding extends BaseHolder_ViewBinding {
|
||
|
private NtbScbCustomerHolder b;
|
||
|
|
||
|
public NtbScbCustomerHolder_ViewBinding(NtbScbCustomerHolder ntbScbCustomerHolder, View view) {
|
||
|
super(ntbScbCustomerHolder, view);
|
||
|
this.b = ntbScbCustomerHolder;
|
||
|
ntbScbCustomerHolder.nonScbCustomer = (DefaultButton) pyT.e(view, R.id.non_scb_customer, "field 'nonScbCustomer'", DefaultButton.class);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.BaseHolder_ViewBinding, butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
NtbScbCustomerHolder ntbScbCustomerHolder = this.b;
|
||
|
if (ntbScbCustomerHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.b = null;
|
||
|
ntbScbCustomerHolder.nonScbCustomer = null;
|
||
|
super.a();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class ShortcutHolder_ViewBinding extends BaseHolder_ViewBinding {
|
||
|
private ShortcutHolder c;
|
||
|
|
||
|
public ShortcutHolder_ViewBinding(ShortcutHolder shortcutHolder, View view) {
|
||
|
super(shortcutHolder, view);
|
||
|
this.c = shortcutHolder;
|
||
|
shortcutHolder.backgroundImageView = (ImageView) pyT.e(view, R.id.landing_tile_background, "field 'backgroundImageView'", ImageView.class);
|
||
|
shortcutHolder.descTextView = (TextView) pyT.e(view, R.id.landing_tile_text, "field 'descTextView'", TextView.class);
|
||
|
shortcutHolder.iconImageView = (ImageView) pyT.e(view, R.id.landing_tile_icon, "field 'iconImageView'", ImageView.class);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.BaseHolder_ViewBinding, butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
ShortcutHolder shortcutHolder = this.c;
|
||
|
if (shortcutHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.c = null;
|
||
|
shortcutHolder.backgroundImageView = null;
|
||
|
shortcutHolder.descTextView = null;
|
||
|
shortcutHolder.iconImageView = null;
|
||
|
super.a();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class PredictiveHolder_ViewBinding extends BaseHolder_ViewBinding {
|
||
|
private PredictiveHolder e;
|
||
|
|
||
|
public PredictiveHolder_ViewBinding(PredictiveHolder predictiveHolder, View view) {
|
||
|
super(predictiveHolder, view);
|
||
|
this.e = predictiveHolder;
|
||
|
predictiveHolder.backgroundImageView = (ImageView) pyT.e(view, R.id.landing_tile_background, "field 'backgroundImageView'", ImageView.class);
|
||
|
predictiveHolder.predictiveLine1TextView = (TextView) pyT.e(view, R.id.landing_predictive_line_1, "field 'predictiveLine1TextView'", TextView.class);
|
||
|
predictiveHolder.predictiveLine2TextView = (TextView) pyT.e(view, R.id.landing_predictive_line_2, "field 'predictiveLine2TextView'", TextView.class);
|
||
|
predictiveHolder.iconImageView = (ImageView) pyT.e(view, R.id.landing_tile_icon, "field 'iconImageView'", ImageView.class);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.BaseHolder_ViewBinding, butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
PredictiveHolder predictiveHolder = this.e;
|
||
|
if (predictiveHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.e = null;
|
||
|
predictiveHolder.backgroundImageView = null;
|
||
|
predictiveHolder.predictiveLine1TextView = null;
|
||
|
predictiveHolder.predictiveLine2TextView = null;
|
||
|
predictiveHolder.iconImageView = null;
|
||
|
super.a();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class AddShortcutHolder_ViewBinding extends BaseHolder_ViewBinding {
|
||
|
private AddShortcutHolder c;
|
||
|
|
||
|
public AddShortcutHolder_ViewBinding(AddShortcutHolder addShortcutHolder, View view) {
|
||
|
super(addShortcutHolder, view);
|
||
|
this.c = addShortcutHolder;
|
||
|
addShortcutHolder.emptyCellHorizontal = (LinearLayout) pyT.e(view, R.id.landing_empty_cell_h, "field 'emptyCellHorizontal'", LinearLayout.class);
|
||
|
addShortcutHolder.emptyCellVertical = (RelativeLayout) pyT.e(view, R.id.landing_empty_cell_v, "field 'emptyCellVertical'", RelativeLayout.class);
|
||
|
addShortcutHolder.labelTextView = (TextView) pyT.e(view, R.id.text_label, "field 'labelTextView'", TextView.class);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.BaseHolder_ViewBinding, butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
AddShortcutHolder addShortcutHolder = this.c;
|
||
|
if (addShortcutHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.c = null;
|
||
|
addShortcutHolder.emptyCellHorizontal = null;
|
||
|
addShortcutHolder.emptyCellVertical = null;
|
||
|
addShortcutHolder.labelTextView = null;
|
||
|
super.a();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class BannerViewHolder_ViewBinding extends BaseHolder_ViewBinding {
|
||
|
private BannerViewHolder c;
|
||
|
|
||
|
public BannerViewHolder_ViewBinding(BannerViewHolder bannerViewHolder, View view) {
|
||
|
super(bannerViewHolder, view);
|
||
|
this.c = bannerViewHolder;
|
||
|
bannerViewHolder.viewPagerBanners = (LoopingViewPager) pyT.e(view, R.id.vp_banners, "field 'viewPagerBanners'", LoopingViewPager.class);
|
||
|
bannerViewHolder.layoutIndicator = (ViewGroup) pyT.e(view, R.id.layout_indicator, "field 'layoutIndicator'", ViewGroup.class);
|
||
|
bannerViewHolder.indicator = (PageIndicatorView) pyT.e(view, R.id.indicator, "field 'indicator'", PageIndicatorView.class);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.BaseHolder_ViewBinding, butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
BannerViewHolder bannerViewHolder = this.c;
|
||
|
if (bannerViewHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.c = null;
|
||
|
bannerViewHolder.viewPagerBanners = null;
|
||
|
bannerViewHolder.layoutIndicator = null;
|
||
|
bannerViewHolder.indicator = null;
|
||
|
super.a();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class StaticShortcutHolder_ViewBinding extends BaseHolder_ViewBinding {
|
||
|
private StaticShortcutHolder c;
|
||
|
|
||
|
public StaticShortcutHolder_ViewBinding(StaticShortcutHolder staticShortcutHolder, View view) {
|
||
|
super(staticShortcutHolder, view);
|
||
|
this.c = staticShortcutHolder;
|
||
|
staticShortcutHolder.newFlagContainer = (FrameLayout) pyT.e(view, R.id.fl_new_container, "field 'newFlagContainer'", FrameLayout.class);
|
||
|
staticShortcutHolder.backgroundImageView = (ImageView) pyT.e(view, R.id.landing_tile_background, "field 'backgroundImageView'", ImageView.class);
|
||
|
staticShortcutHolder.descTextView = (TextView) pyT.e(view, R.id.landing_tile_text, "field 'descTextView'", TextView.class);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.BaseHolder_ViewBinding, butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
StaticShortcutHolder staticShortcutHolder = this.c;
|
||
|
if (staticShortcutHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.c = null;
|
||
|
staticShortcutHolder.newFlagContainer = null;
|
||
|
staticShortcutHolder.backgroundImageView = null;
|
||
|
staticShortcutHolder.descTextView = null;
|
||
|
super.a();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.iIq
|
||
|
public final /* synthetic */ boolean c(BaseHolder baseHolder, int i) {
|
||
|
BaseHolder baseHolder2 = baseHolder;
|
||
|
if (this.g != null && this.m != null) {
|
||
|
if (baseHolder2.e.L == AyW.STATIC_SHORTCUT) {
|
||
|
this.g.b();
|
||
|
} else {
|
||
|
this.m.b();
|
||
|
}
|
||
|
}
|
||
|
return baseHolder2.e.y;
|
||
|
}
|
||
|
|
||
|
@Override // o.iIq
|
||
|
public final /* bridge */ /* synthetic */ JuK e(BaseHolder baseHolder, int i) {
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public /* synthetic */ void onBindViewHolder(BaseHolder baseHolder, int i) {
|
||
|
baseHolder.b(this.e.get(i));
|
||
|
}
|
||
|
|
||
|
public TileAdapter(View view, ZqN zqN, InterfaceC12854fJL interfaceC12854fJL, vUG vug, vUG vug2) {
|
||
|
this.f8011o = view;
|
||
|
this.i = zqN;
|
||
|
this.l = interfaceC12854fJL;
|
||
|
this.m = vug;
|
||
|
this.g = vug2;
|
||
|
setHasStableIds(true);
|
||
|
}
|
||
|
|
||
|
public final void e(List<C0907Rf.Sts> list) {
|
||
|
this.e.clear();
|
||
|
this.e.addAll(list);
|
||
|
if (this.f) {
|
||
|
this.e.add(new IeS());
|
||
|
}
|
||
|
notifyDataSetChanged();
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public void onAttachedToRecyclerView(RecyclerView recyclerView) {
|
||
|
super.onAttachedToRecyclerView(recyclerView);
|
||
|
this.j = recyclerView;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public void onDetachedFromRecyclerView(RecyclerView recyclerView) {
|
||
|
super.onDetachedFromRecyclerView(recyclerView);
|
||
|
this.j = null;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public int getItemCount() {
|
||
|
return this.e.size();
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public long getItemId(int i) {
|
||
|
return this.e.get(i).hashCode();
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public int getItemViewType(int i) {
|
||
|
if (this.e.get(i) instanceof IeS) {
|
||
|
return -2;
|
||
|
}
|
||
|
return this.e.get(i).L.ordinal();
|
||
|
}
|
||
|
|
||
|
@Override // o.iIq
|
||
|
public final void c(int i, int i2) {
|
||
|
if (i == i2 || this.h) {
|
||
|
return;
|
||
|
}
|
||
|
C0907Rf.Sts sts = this.e.get(i);
|
||
|
C0907Rf.Sts sts2 = this.e.get(i2);
|
||
|
if (sts.L != AyW.STATIC_SHORTCUT || sts2.L != AyW.STATIC_SHORTCUT) {
|
||
|
this.l.a(sts.x, sts2.x);
|
||
|
ArrayList arrayList = new ArrayList(this.e);
|
||
|
Collections.swap(arrayList, i, i2);
|
||
|
e(arrayList);
|
||
|
C12354ewd c12354ewd = this.a;
|
||
|
c12354ewd.d.add(new C12354ewd.LWm(i, i2));
|
||
|
return;
|
||
|
}
|
||
|
this.e.add(i2, this.e.remove(i));
|
||
|
YKU yku = new YKU(this.e);
|
||
|
this.l.b_((List) new YKU(yku.a, new GEP(yku.b, new Jel() { // from class: o.ewe
|
||
|
@Override // o.Jel
|
||
|
public final boolean e(Object obj) {
|
||
|
return TileAdapter.c((C0907Rf.Sts) obj);
|
||
|
}
|
||
|
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())));
|
||
|
}
|
||
|
|
||
|
@Override // o.iIq
|
||
|
public final boolean e(int i, int i2) {
|
||
|
int[] iArr = new int[2];
|
||
|
int[] iArr2 = new int[2];
|
||
|
this.c.getLocationOnScreen(iArr);
|
||
|
this.f8011o.getLocationOnScreen(iArr2);
|
||
|
boolean z = iArr[1] + this.c.getHeight() >= iArr2[1] && iArr[0] + (this.c.getWidth() / 2) > this.f8011o.getWidth() / 4 && iArr[0] + (this.c.getWidth() / 2) < (this.f8011o.getWidth() / 4) * 3;
|
||
|
this.h = z;
|
||
|
this.l.d_(z);
|
||
|
if (this.e.get(i).L == AyW.STATIC_SHORTCUT) {
|
||
|
this.i.a(!this.h);
|
||
|
}
|
||
|
if (this.h) {
|
||
|
return false;
|
||
|
}
|
||
|
return this.e.get(i).L == AyW.STATIC_SHORTCUT ? this.e.get(i2).L == AyW.STATIC_SHORTCUT && this.e.get(i2).y : this.e.get(i2).L != AyW.STATIC_SHORTCUT && this.e.get(i2).y;
|
||
|
}
|
||
|
|
||
|
@Override // o.iIq
|
||
|
public final void d(int i) {
|
||
|
C0907Rf.Sts sts = this.e.get(i);
|
||
|
if (this.h) {
|
||
|
this.l.d_(false);
|
||
|
if (sts.L == AyW.STATIC_SHORTCUT && sts.u) {
|
||
|
ArrayList arrayList = new ArrayList(this.e);
|
||
|
arrayList.remove(sts);
|
||
|
this.l.e(arrayList);
|
||
|
} else {
|
||
|
this.l.f(sts);
|
||
|
}
|
||
|
}
|
||
|
this.h = false;
|
||
|
this.c = null;
|
||
|
this.i.a(true);
|
||
|
View view = this.f8011o;
|
||
|
if (view != null) {
|
||
|
view.setVisibility(8);
|
||
|
}
|
||
|
View view2 = this.d;
|
||
|
if (view2 != null) {
|
||
|
ViewGroup.LayoutParams layoutParams = view2.getLayoutParams();
|
||
|
layoutParams.height = 0;
|
||
|
this.d.setLayoutParams(layoutParams);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC12351ewa
|
||
|
public final int e(int i) {
|
||
|
return this.e.get(i).H;
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static abstract class BaseHolder extends Mmw {
|
||
|
ojQ<C0907Rf.Sts> a;
|
||
|
C0907Rf.Sts e;
|
||
|
|
||
|
@BindView
|
||
|
RectangleRelativeLayout rectangleRelativeLayout;
|
||
|
|
||
|
BaseHolder(ViewGroup viewGroup, int i, ojQ<C0907Rf.Sts> ojq) {
|
||
|
super(LayoutInflater.from(viewGroup.getContext()).inflate(i, viewGroup, false));
|
||
|
ButterKnife.c(this, this.itemView);
|
||
|
this.a = ojq;
|
||
|
this.itemView.setOnClickListener(new View.OnClickListener(this) { // from class: o.ewF
|
||
|
private TileAdapter.BaseHolder a;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view) {
|
||
|
r1.a.a(this.a.e);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = this;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
void b(C0907Rf.Sts sts) {
|
||
|
this.e = sts;
|
||
|
RectangleRelativeLayout rectangleRelativeLayout = this.rectangleRelativeLayout;
|
||
|
if (rectangleRelativeLayout != null) {
|
||
|
rectangleRelativeLayout.setSpanSize(sts.H);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static class NHB extends BaseHolder {
|
||
|
NHB(ViewGroup viewGroup, ojQ<C0907Rf.Sts> ojq) {
|
||
|
super(viewGroup, R.layout.2131559167, ojq);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static class saX extends BaseHolder {
|
||
|
saX(ViewGroup viewGroup) {
|
||
|
super(viewGroup, R.layout.2131559163, null);
|
||
|
this.itemView.setOnClickListener(null);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static class LWm extends BaseHolder {
|
||
|
LWm(ViewGroup viewGroup) {
|
||
|
super(viewGroup, R.layout.2131559157, null);
|
||
|
this.itemView.setOnClickListener(null);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static class RVV extends BaseHolder {
|
||
|
RVV(ViewGroup viewGroup, ojQ<C0907Rf.Sts> ojq) {
|
||
|
super(viewGroup, R.layout.2131559159, ojq);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static class LearnMoreHolder extends BaseHolder {
|
||
|
|
||
|
@BindView
|
||
|
ImageView backgroundImageView;
|
||
|
|
||
|
LearnMoreHolder(ViewGroup viewGroup, ojQ<C0907Rf.Sts> ojq) {
|
||
|
super(viewGroup, R.layout.2131559162, ojq);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static class PredictiveHolder extends BaseHolder {
|
||
|
private jbe b;
|
||
|
|
||
|
@BindView
|
||
|
ImageView backgroundImageView;
|
||
|
private HBt d;
|
||
|
|
||
|
@BindView
|
||
|
ImageView iconImageView;
|
||
|
|
||
|
@BindView
|
||
|
TextView predictiveLine1TextView;
|
||
|
|
||
|
@BindView
|
||
|
TextView predictiveLine2TextView;
|
||
|
|
||
|
PredictiveHolder(ViewGroup viewGroup, ojQ<C0907Rf.Sts> ojq) {
|
||
|
super(viewGroup, R.layout.2131559164, ojq);
|
||
|
this.b = new jbe(this.iconImageView);
|
||
|
this.d = new HBt(this.backgroundImageView, null);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.BaseHolder
|
||
|
final void b(C0907Rf.Sts sts) {
|
||
|
super.b(sts);
|
||
|
this.b.c(sts);
|
||
|
this.predictiveLine1TextView.setMaxLines(1);
|
||
|
this.predictiveLine1TextView.setLines(1);
|
||
|
if (!TextUtils.isEmpty(this.e.K) && !TextUtils.isEmpty(this.e.N)) {
|
||
|
this.predictiveLine1TextView.setText(this.e.K);
|
||
|
this.predictiveLine2TextView.setText(this.e.N);
|
||
|
this.predictiveLine2TextView.setVisibility(0);
|
||
|
} else if (!TextUtils.isEmpty(this.e.K)) {
|
||
|
this.predictiveLine1TextView.setText(this.e.K);
|
||
|
this.predictiveLine1TextView.setGravity(17);
|
||
|
this.predictiveLine1TextView.setMaxLines(2);
|
||
|
this.predictiveLine1TextView.setLines(2);
|
||
|
this.predictiveLine2TextView.setVisibility(8);
|
||
|
}
|
||
|
this.d.c(sts);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static class tOB extends BaseHolder {
|
||
|
tOB(ViewGroup viewGroup, ojQ<C0907Rf.Sts> ojq) {
|
||
|
super(viewGroup, R.layout.2131559165, ojq);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static class StaticShortcutHolder extends BaseHolder {
|
||
|
|
||
|
@BindView
|
||
|
ImageView backgroundImageView;
|
||
|
private Sts c;
|
||
|
private HBt d;
|
||
|
|
||
|
@BindView
|
||
|
TextView descTextView;
|
||
|
|
||
|
@BindView
|
||
|
FrameLayout newFlagContainer;
|
||
|
|
||
|
StaticShortcutHolder(ViewGroup viewGroup, ojQ<C0907Rf.Sts> ojq) {
|
||
|
super(viewGroup, R.layout.2131559168, ojq);
|
||
|
this.d = new HBt(this.backgroundImageView, null);
|
||
|
this.c = new Sts(this.descTextView);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.BaseHolder
|
||
|
final void b(C0907Rf.Sts sts) {
|
||
|
super.b(sts);
|
||
|
this.c.c(sts);
|
||
|
this.d.c(sts);
|
||
|
this.newFlagContainer.setVisibility(sts.D ? 0 : 8);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static class GroupHolder extends BaseHolder {
|
||
|
private Sts b;
|
||
|
|
||
|
@BindView
|
||
|
ImageView backgroundImageView;
|
||
|
private HBt c;
|
||
|
|
||
|
@BindView
|
||
|
TextView descTextView;
|
||
|
|
||
|
@BindView
|
||
|
ImageView iconImageView;
|
||
|
|
||
|
@BindView
|
||
|
View placeHolderView;
|
||
|
|
||
|
GroupHolder(ViewGroup viewGroup, ojQ<C0907Rf.Sts> ojq) {
|
||
|
super(viewGroup, R.layout.2131559160, ojq);
|
||
|
this.c = new HBt(this.backgroundImageView, this.placeHolderView);
|
||
|
this.b = new Sts(this.descTextView);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.BaseHolder
|
||
|
final void b(C0907Rf.Sts sts) {
|
||
|
super.b(sts);
|
||
|
C12891fKc.azj_(this.iconImageView, sts.w, (int) this.iconImageView.getResources().getDimension(R.dimen.f15242131165288));
|
||
|
this.b.c(sts);
|
||
|
this.c.c(sts);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static class ShortcutHolder extends BaseHolder {
|
||
|
private HBt b;
|
||
|
|
||
|
@BindView
|
||
|
ImageView backgroundImageView;
|
||
|
private jbe c;
|
||
|
private Sts d;
|
||
|
|
||
|
@BindView
|
||
|
TextView descTextView;
|
||
|
|
||
|
@BindView
|
||
|
ImageView iconImageView;
|
||
|
|
||
|
ShortcutHolder(ViewGroup viewGroup, ojQ<C0907Rf.Sts> ojq) {
|
||
|
super(viewGroup, R.layout.2131559166, ojq);
|
||
|
this.c = new jbe(this.iconImageView);
|
||
|
this.b = new HBt(this.backgroundImageView, null);
|
||
|
this.d = new Sts(this.descTextView);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.BaseHolder
|
||
|
final void b(C0907Rf.Sts sts) {
|
||
|
super.b(sts);
|
||
|
this.c.c(sts);
|
||
|
this.d.c(sts);
|
||
|
this.b.c(sts);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static class DemoHolder extends BaseHolder {
|
||
|
private jbe b;
|
||
|
|
||
|
@BindView
|
||
|
ImageView backgroundImageView;
|
||
|
private HBt c;
|
||
|
private Sts d;
|
||
|
|
||
|
@BindView
|
||
|
TextView descTextView;
|
||
|
|
||
|
@BindView
|
||
|
ImageView iconImageView;
|
||
|
|
||
|
DemoHolder(ViewGroup viewGroup, ojQ<C0907Rf.Sts> ojq) {
|
||
|
super(viewGroup, R.layout.2131559166, ojq);
|
||
|
this.b = new jbe(this.iconImageView);
|
||
|
this.c = new HBt(this.backgroundImageView, null);
|
||
|
this.d = new Sts(this.descTextView);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.BaseHolder
|
||
|
final void b(C0907Rf.Sts sts) {
|
||
|
super.b(sts);
|
||
|
if (sts != null && !gjJ.b((CharSequence) sts.w)) {
|
||
|
this.b.c(sts);
|
||
|
}
|
||
|
this.d.c(sts);
|
||
|
this.c.c(sts);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static class NtbScbCustomerHolder extends BaseHolder {
|
||
|
|
||
|
@BindView
|
||
|
DefaultButton nonScbCustomer;
|
||
|
|
||
|
NtbScbCustomerHolder(ViewGroup viewGroup, ojQ<C0907Rf.Sts> ojq) {
|
||
|
super(viewGroup, R.layout.2131560219, ojq);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static class AddShortcutHolder extends BaseHolder {
|
||
|
|
||
|
@BindView
|
||
|
LinearLayout emptyCellHorizontal;
|
||
|
|
||
|
@BindView
|
||
|
RelativeLayout emptyCellVertical;
|
||
|
|
||
|
@BindView
|
||
|
TextView labelTextView;
|
||
|
|
||
|
AddShortcutHolder(ViewGroup viewGroup, ojQ<C0907Rf.Sts> ojq) {
|
||
|
super(viewGroup, R.layout.2131559158, ojq);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.BaseHolder
|
||
|
final void b(C0907Rf.Sts sts) {
|
||
|
super.b(sts);
|
||
|
if (this.e instanceof IeS) {
|
||
|
d(0);
|
||
|
this.labelTextView.setText(R.string.landing_page_static_customize_label);
|
||
|
return;
|
||
|
}
|
||
|
this.labelTextView.setText(R.string.landing_page_personalize);
|
||
|
if (this.e.H == 1) {
|
||
|
d(0);
|
||
|
} else {
|
||
|
d(1);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private void d(int i) {
|
||
|
if (i == 0) {
|
||
|
this.emptyCellVertical.setVisibility(0);
|
||
|
this.emptyCellHorizontal.setVisibility(8);
|
||
|
} else if (i == 1) {
|
||
|
this.emptyCellVertical.setVisibility(8);
|
||
|
this.emptyCellHorizontal.setVisibility(0);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static class jbe {
|
||
|
private ImageView b;
|
||
|
|
||
|
jbe(ImageView imageView) {
|
||
|
this.b = imageView;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:32:0x006f A[ADDED_TO_REGION] */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public final void c(o.C0907Rf.Sts r9) {
|
||
|
/*
|
||
|
r8 = this;
|
||
|
android.widget.ImageView r0 = r8.b
|
||
|
android.content.Context r1 = r0.getContext()
|
||
|
if (r1 != 0) goto L9
|
||
|
return
|
||
|
L9:
|
||
|
int[] r0 = com.scb.phone.view.adapter.landingpage.TileAdapter.AnonymousClass1.b
|
||
|
o.isw r2 = r9.M
|
||
|
int r2 = r2.ordinal()
|
||
|
r0 = r0[r2]
|
||
|
r2 = 2131230886(0x7f0800a6, float:1.8077837E38)
|
||
|
r3 = 2131230950(0x7f0800e6, float:1.8077967E38)
|
||
|
r4 = 1
|
||
|
r5 = 2
|
||
|
if (r0 == r4) goto L32
|
||
|
if (r0 == r5) goto L2c
|
||
|
r4 = 3
|
||
|
if (r0 == r4) goto L2c
|
||
|
r3 = 4
|
||
|
if (r0 == r3) goto L27
|
||
|
r0 = 0
|
||
|
goto L30
|
||
|
L27:
|
||
|
android.graphics.drawable.Drawable r0 = o.nMh.getDrawable(r1, r2)
|
||
|
goto L30
|
||
|
L2c:
|
||
|
android.graphics.drawable.Drawable r0 = o.nMh.getDrawable(r1, r3)
|
||
|
L30:
|
||
|
r2 = r0
|
||
|
goto L85
|
||
|
L32:
|
||
|
o.Xi r0 = r9.q
|
||
|
java.lang.String r0 = r0.r
|
||
|
r0.hashCode()
|
||
|
int r6 = r0.hashCode()
|
||
|
r7 = -486974465(0xffffffffe2f95bff, float:-2.2999341E21)
|
||
|
if (r6 == r7) goto L62
|
||
|
r7 = 80008848(0x4c4d690, float:4.6276423E-36)
|
||
|
if (r6 == r7) goto L58
|
||
|
r7 = 510594974(0x1e6f0f9e, float:1.2655784E-20)
|
||
|
if (r6 == r7) goto L4d
|
||
|
goto L6c
|
||
|
L4d:
|
||
|
java.lang.String r6 = "REMITTANCE"
|
||
|
boolean r0 = r0.equals(r6)
|
||
|
if (r0 != 0) goto L56
|
||
|
goto L6c
|
||
|
L56:
|
||
|
r0 = r5
|
||
|
goto L6d
|
||
|
L58:
|
||
|
java.lang.String r6 = "TOPUP"
|
||
|
boolean r0 = r0.equals(r6)
|
||
|
if (r0 == 0) goto L6c
|
||
|
r0 = r4
|
||
|
goto L6d
|
||
|
L62:
|
||
|
java.lang.String r6 = "BILLPAYMENT"
|
||
|
boolean r0 = r0.equals(r6)
|
||
|
if (r0 == 0) goto L6c
|
||
|
r0 = 0
|
||
|
goto L6d
|
||
|
L6c:
|
||
|
r0 = -1
|
||
|
L6d:
|
||
|
if (r0 == 0) goto L80
|
||
|
if (r0 == r4) goto L80
|
||
|
if (r0 == r5) goto L78
|
||
|
android.graphics.drawable.Drawable r0 = o.nMh.getDrawable(r1, r2)
|
||
|
goto L30
|
||
|
L78:
|
||
|
r0 = 2131230887(0x7f0800a7, float:1.807784E38)
|
||
|
android.graphics.drawable.Drawable r0 = o.nMh.getDrawable(r1, r0)
|
||
|
goto L30
|
||
|
L80:
|
||
|
android.graphics.drawable.Drawable r0 = o.nMh.getDrawable(r1, r3)
|
||
|
goto L30
|
||
|
L85:
|
||
|
r0 = 2131165288(0x7f070068, float:1.7944789E38)
|
||
|
if (r2 == 0) goto La1
|
||
|
android.widget.ImageView r3 = r8.b
|
||
|
java.lang.String r4 = r9.w
|
||
|
android.content.res.Resources r9 = r1.getResources()
|
||
|
int r5 = r9.getDimensionPixelOffset(r0)
|
||
|
r9 = 2131099849(0x7f0600c9, float:1.7812063E38)
|
||
|
int r6 = o.nMh.getColor(r1, r9)
|
||
|
o.C12891fKc.azg_(r1, r2, r3, r4, r5, r6)
|
||
|
return
|
||
|
La1:
|
||
|
android.widget.ImageView r2 = r8.b
|
||
|
java.lang.String r3 = r9.w
|
||
|
android.content.res.Resources r1 = r1.getResources()
|
||
|
float r0 = r1.getDimension(r0)
|
||
|
int r0 = (int) r0
|
||
|
com.scb.phone.view.adapter.landingpage.TileAdapter$jbe$4 r1 = new com.scb.phone.view.adapter.landingpage.TileAdapter$jbe$4
|
||
|
r1.<init>(r8, r9)
|
||
|
o.C12891fKc.azk_(r2, r3, r0, r1)
|
||
|
return
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.adapter.landingpage.TileAdapter.jbe.c(o.Rf$Sts):void");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* renamed from: com.scb.phone.view.adapter.landingpage.TileAdapter$1, reason: invalid class name */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static /* synthetic */ class AnonymousClass1 {
|
||
|
static final int[] b;
|
||
|
static final int[] d;
|
||
|
|
||
|
static {
|
||
|
int[] iArr = new int[EnumC15824isw.values().length];
|
||
|
b = iArr;
|
||
|
try {
|
||
|
iArr[EnumC15824isw.FAVOURITE.ordinal()] = 1;
|
||
|
} catch (NoSuchFieldError unused) {
|
||
|
}
|
||
|
try {
|
||
|
b[EnumC15824isw.BILLERPAYMENT.ordinal()] = 2;
|
||
|
} catch (NoSuchFieldError unused2) {
|
||
|
}
|
||
|
try {
|
||
|
b[EnumC15824isw.BILLERTOPUP.ordinal()] = 3;
|
||
|
} catch (NoSuchFieldError unused3) {
|
||
|
}
|
||
|
try {
|
||
|
b[EnumC15824isw.TRANSFER.ordinal()] = 4;
|
||
|
} catch (NoSuchFieldError unused4) {
|
||
|
}
|
||
|
int[] iArr2 = new int[EnumC14464fth.values().length];
|
||
|
d = iArr2;
|
||
|
try {
|
||
|
iArr2[EnumC14464fth.ADD_SHORTCUT.ordinal()] = 1;
|
||
|
} catch (NoSuchFieldError unused5) {
|
||
|
}
|
||
|
try {
|
||
|
d[EnumC14464fth.SHORTCUT.ordinal()] = 2;
|
||
|
} catch (NoSuchFieldError unused6) {
|
||
|
}
|
||
|
try {
|
||
|
d[EnumC14464fth.GROUP.ordinal()] = 3;
|
||
|
} catch (NoSuchFieldError unused7) {
|
||
|
}
|
||
|
try {
|
||
|
d[EnumC14464fth.STATIC_SHORTCUT.ordinal()] = 4;
|
||
|
} catch (NoSuchFieldError unused8) {
|
||
|
}
|
||
|
try {
|
||
|
d[EnumC14464fth.SCB.ordinal()] = 5;
|
||
|
} catch (NoSuchFieldError unused9) {
|
||
|
}
|
||
|
try {
|
||
|
d[EnumC14464fth.LEARN_MORE.ordinal()] = 6;
|
||
|
} catch (NoSuchFieldError unused10) {
|
||
|
}
|
||
|
try {
|
||
|
d[EnumC14464fth.ERROR.ordinal()] = 7;
|
||
|
} catch (NoSuchFieldError unused11) {
|
||
|
}
|
||
|
try {
|
||
|
d[EnumC14464fth.EMPTY.ordinal()] = 8;
|
||
|
} catch (NoSuchFieldError unused12) {
|
||
|
}
|
||
|
try {
|
||
|
d[EnumC14464fth.PREDICTIVE_TILE_LOADING.ordinal()] = 9;
|
||
|
} catch (NoSuchFieldError unused13) {
|
||
|
}
|
||
|
try {
|
||
|
d[EnumC14464fth.STATIC_ERROR.ordinal()] = 10;
|
||
|
} catch (NoSuchFieldError unused14) {
|
||
|
}
|
||
|
try {
|
||
|
d[EnumC14464fth.SPLASH.ordinal()] = 11;
|
||
|
} catch (NoSuchFieldError unused15) {
|
||
|
}
|
||
|
try {
|
||
|
d[EnumC14464fth.NTB_SCB_CUSTOMER.ordinal()] = 12;
|
||
|
} catch (NoSuchFieldError unused16) {
|
||
|
}
|
||
|
try {
|
||
|
d[EnumC14464fth.NTB_PREDICTIVE.ordinal()] = 13;
|
||
|
} catch (NoSuchFieldError unused17) {
|
||
|
}
|
||
|
try {
|
||
|
d[EnumC14464fth.BANNER.ordinal()] = 14;
|
||
|
} catch (NoSuchFieldError unused18) {
|
||
|
}
|
||
|
try {
|
||
|
d[EnumC14464fth.LOADING.ordinal()] = 15;
|
||
|
} catch (NoSuchFieldError unused19) {
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static class HBt {
|
||
|
View a;
|
||
|
private ImageView c;
|
||
|
|
||
|
HBt(ImageView imageView, View view) {
|
||
|
this.c = imageView;
|
||
|
this.a = view;
|
||
|
}
|
||
|
|
||
|
final void c(C0907Rf.Sts sts) {
|
||
|
if (this.c.getContext() != null) {
|
||
|
this.c.setContentDescription(sts.e);
|
||
|
C12891fKc.azr_(this.c, sts.f, new InterfaceC12980fNE(this, sts) { // from class: com.scb.phone.view.adapter.landingpage.TileAdapter.HBt.2
|
||
|
private HBt b;
|
||
|
private C0907Rf.Sts e;
|
||
|
|
||
|
{
|
||
|
this.b = this;
|
||
|
this.e = sts;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC12980fNE
|
||
|
public final void d() {
|
||
|
if (this.b.a != null) {
|
||
|
if (this.e.L == AyW.GROUP || this.e.M == EnumC15824isw.QUICKBALANCE || this.e.M == EnumC15824isw.QUICKPROMPTPAY) {
|
||
|
this.b.a.setVisibility(8);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC12980fNE
|
||
|
public final void b(Exception exc) {
|
||
|
Uri parse;
|
||
|
Picasso d = Picasso.d();
|
||
|
String str = this.e.f;
|
||
|
if (str == null || (parse = Uri.parse(str)) == null) {
|
||
|
return;
|
||
|
}
|
||
|
d.b.b(parse.toString());
|
||
|
}
|
||
|
});
|
||
|
if (sts.A != 0) {
|
||
|
this.c.setBackgroundResource(sts.A);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static class Sts {
|
||
|
private TextView c;
|
||
|
|
||
|
public Sts(TextView textView) {
|
||
|
this.c = textView;
|
||
|
}
|
||
|
|
||
|
final void c(C0907Rf.Sts sts) {
|
||
|
this.c.setText(sts.K);
|
||
|
if (sts.G != 0) {
|
||
|
TextView textView = this.c;
|
||
|
textView.setTextColor(nMh.getColor(textView.getContext(), sts.G));
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static class IeS extends C0907Rf.Sts {
|
||
|
IeS() {
|
||
|
this.x = -2L;
|
||
|
this.H = 3;
|
||
|
this.y = false;
|
||
|
this.u = false;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static class BannerViewHolder extends BaseHolder implements InterfaceC16186lzC {
|
||
|
|
||
|
@BindView
|
||
|
PageIndicatorView indicator;
|
||
|
|
||
|
@BindView
|
||
|
ViewGroup layoutIndicator;
|
||
|
|
||
|
@BindView
|
||
|
LoopingViewPager viewPagerBanners;
|
||
|
|
||
|
BannerViewHolder(ViewGroup viewGroup, ojQ<C0907Rf.Sts> ojq) {
|
||
|
super(viewGroup, R.layout.2131559155, ojq);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.BaseHolder
|
||
|
final void b(C0907Rf.Sts sts) {
|
||
|
int count;
|
||
|
super.b(sts);
|
||
|
this.viewPagerBanners.setAdapter(new RVV(this.itemView.getContext(), this.e.J, this.a));
|
||
|
LoopingViewPager loopingViewPager = this.viewPagerBanners;
|
||
|
if (loopingViewPager.getAdapter() instanceof BjL) {
|
||
|
List<T> list = ((BjL) loopingViewPager.getAdapter()).a;
|
||
|
count = list == 0 ? 0 : list.size();
|
||
|
} else {
|
||
|
count = loopingViewPager.getAdapter().getCount();
|
||
|
}
|
||
|
if (count > 0) {
|
||
|
this.itemView.setVisibility(0);
|
||
|
this.indicator.setCount(count);
|
||
|
this.indicator.setAnimationDuration(0L);
|
||
|
this.viewPagerBanners.addOnPageChangeListener(new ViewPager.ojQ(this, count) { // from class: com.scb.phone.view.adapter.landingpage.TileAdapter.BannerViewHolder.2
|
||
|
private int a;
|
||
|
private BannerViewHolder d;
|
||
|
|
||
|
@Override // androidx.viewpager.widget.ViewPager.ojQ
|
||
|
public final void onPageScrollStateChanged(int i) {
|
||
|
}
|
||
|
|
||
|
@Override // androidx.viewpager.widget.ViewPager.ojQ
|
||
|
public final void onPageScrolled(int i, float f, int i2) {
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = this;
|
||
|
this.a = count;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.viewpager.widget.ViewPager.ojQ
|
||
|
public final void onPageSelected(int i) {
|
||
|
this.d.indicator.setSelected((i - 1) % this.a);
|
||
|
}
|
||
|
});
|
||
|
this.layoutIndicator.setVisibility(count > 10 ? 8 : 0);
|
||
|
return;
|
||
|
}
|
||
|
this.itemView.setVisibility(8);
|
||
|
}
|
||
|
|
||
|
@RDs(d = wdQ.HBt.ON_RESUME)
|
||
|
public void onResume() {
|
||
|
guQ.c("onResume", new Object[0]);
|
||
|
LoopingViewPager loopingViewPager = this.viewPagerBanners;
|
||
|
if (loopingViewPager != null) {
|
||
|
loopingViewPager.a.postDelayed(loopingViewPager.c, loopingViewPager.b);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@RDs(d = wdQ.HBt.ON_PAUSE)
|
||
|
public void onPause() {
|
||
|
guQ.c("onPause", new Object[0]);
|
||
|
LoopingViewPager loopingViewPager = this.viewPagerBanners;
|
||
|
if (loopingViewPager != null) {
|
||
|
loopingViewPager.a.removeCallbacks(loopingViewPager.c);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static class RVV extends BjL<C0907Rf.Sts> {
|
||
|
private HBt b;
|
||
|
private ojQ<C0907Rf.Sts> e;
|
||
|
|
||
|
RVV(Context context, List<C0907Rf.Sts> list, ojQ<C0907Rf.Sts> ojq) {
|
||
|
super(context, list);
|
||
|
this.e = ojq;
|
||
|
}
|
||
|
|
||
|
@Override // o.BjL
|
||
|
public final View anU_(ViewGroup viewGroup) {
|
||
|
ImageView imageView = new ImageView(this.c);
|
||
|
imageView.setLayoutParams(new LinearLayout.LayoutParams(-1, -1));
|
||
|
return imageView;
|
||
|
}
|
||
|
|
||
|
@Override // o.BjL
|
||
|
public final void c(View view, int i) {
|
||
|
final C0907Rf.Sts sts = (C0907Rf.Sts) this.a.get(i);
|
||
|
if (view instanceof ImageView) {
|
||
|
HBt hBt = new HBt((ImageView) view, null);
|
||
|
this.b = hBt;
|
||
|
hBt.c(sts);
|
||
|
}
|
||
|
view.setOnClickListener(new View.OnClickListener(this, sts) { // from class: o.ewz
|
||
|
private TileAdapter.BannerViewHolder.RVV a;
|
||
|
private C0907Rf.Sts e;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view2) {
|
||
|
TileAdapter.BannerViewHolder.RVV.b(this.a, this.e);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = this;
|
||
|
this.e = sts;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void b(RVV rvv, C0907Rf.Sts sts) {
|
||
|
ojQ<C0907Rf.Sts> ojq = rvv.e;
|
||
|
if (ojq != null) {
|
||
|
ojq.a(sts);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ boolean c(C0907Rf.Sts sts) {
|
||
|
return sts.L == AyW.STATIC_SHORTCUT;
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ boolean c(long j, C0907Rf.Sts sts) {
|
||
|
return sts.x == j;
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ boolean d(long j, C0907Rf.Sts sts) {
|
||
|
return sts.x == j;
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ boolean b(C0907Rf.Sts sts) {
|
||
|
return sts.L != AyW.ADD_SHORTCUT;
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ boolean e(C0907Rf.Sts sts) {
|
||
|
return sts.L == AyW.ADD_SHORTCUT;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public /* synthetic */ BaseHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
|
||
|
if (i == -2) {
|
||
|
return new AddShortcutHolder(viewGroup, new ojQ(this) { // from class: o.ewh
|
||
|
private TileAdapter c;
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.ojQ
|
||
|
public final void a(Object obj) {
|
||
|
this.c.l.aU_();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = this;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
switch (AnonymousClass1.d[EnumC14464fth.a(i).ordinal()]) {
|
||
|
case 1:
|
||
|
return new AddShortcutHolder(viewGroup, new ojQ(this) { // from class: o.ewp
|
||
|
private TileAdapter b;
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.ojQ
|
||
|
public final void a(Object obj) {
|
||
|
this.b.l.a(((C0907Rf.Sts) obj).z);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = this;
|
||
|
}
|
||
|
});
|
||
|
case 2:
|
||
|
return new ShortcutHolder(viewGroup, new ojQ(this) { // from class: o.ewf
|
||
|
private TileAdapter c;
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.ojQ
|
||
|
public final void a(Object obj) {
|
||
|
this.c.l.d(((C0907Rf.Sts) obj).x);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = this;
|
||
|
}
|
||
|
});
|
||
|
case 3:
|
||
|
final InterfaceC12854fJL interfaceC12854fJL = this.l;
|
||
|
Objects.requireNonNull(interfaceC12854fJL);
|
||
|
return new GroupHolder(viewGroup, new ojQ(interfaceC12854fJL) { // from class: o.ews
|
||
|
private InterfaceC12854fJL d;
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.ojQ
|
||
|
public final void a(Object obj) {
|
||
|
this.d.j((C0907Rf.Sts) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = interfaceC12854fJL;
|
||
|
}
|
||
|
});
|
||
|
case 4:
|
||
|
final InterfaceC12854fJL interfaceC12854fJL2 = this.l;
|
||
|
Objects.requireNonNull(interfaceC12854fJL2);
|
||
|
return new StaticShortcutHolder(viewGroup, new ojQ(interfaceC12854fJL2) { // from class: o.ewr
|
||
|
private InterfaceC12854fJL e;
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.ojQ
|
||
|
public final void a(Object obj) {
|
||
|
this.e.a((C0907Rf.Sts) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.e = interfaceC12854fJL2;
|
||
|
}
|
||
|
});
|
||
|
case 5:
|
||
|
return new tOB(viewGroup, new ojQ(this) { // from class: o.ewn
|
||
|
private TileAdapter b;
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.ojQ
|
||
|
public final void a(Object obj) {
|
||
|
this.b.l.bf_();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = this;
|
||
|
}
|
||
|
});
|
||
|
case 6:
|
||
|
return new LearnMoreHolder(viewGroup, new ojQ(this) { // from class: o.ewt
|
||
|
private TileAdapter c;
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.ojQ
|
||
|
public final void a(Object obj) {
|
||
|
this.c.l.K();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = this;
|
||
|
}
|
||
|
});
|
||
|
case 7:
|
||
|
return new RVV(viewGroup, new ojQ(this) { // from class: o.ewA
|
||
|
private TileAdapter c;
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.ojQ
|
||
|
public final void a(Object obj) {
|
||
|
this.c.l.E();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = this;
|
||
|
}
|
||
|
});
|
||
|
case 8:
|
||
|
LWm lWm = new LWm(viewGroup);
|
||
|
this.d = lWm.itemView;
|
||
|
return lWm;
|
||
|
case 9:
|
||
|
return new saX(viewGroup);
|
||
|
case 10:
|
||
|
return new NHB(viewGroup, new ojQ(this) { // from class: o.ewy
|
||
|
private TileAdapter b;
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.ojQ
|
||
|
public final void a(Object obj) {
|
||
|
this.b.l.L();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = this;
|
||
|
}
|
||
|
});
|
||
|
case 11:
|
||
|
final InterfaceC12854fJL interfaceC12854fJL3 = this.l;
|
||
|
Objects.requireNonNull(interfaceC12854fJL3);
|
||
|
return new DemoHolder(viewGroup, new ojQ(interfaceC12854fJL3) { // from class: o.ewl
|
||
|
private InterfaceC12854fJL a;
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.ojQ
|
||
|
public final void a(Object obj) {
|
||
|
this.a.c((C0907Rf.Sts) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = interfaceC12854fJL3;
|
||
|
}
|
||
|
});
|
||
|
case 12:
|
||
|
return new NtbScbCustomerHolder(viewGroup, new ojQ(this) { // from class: o.ewj
|
||
|
private TileAdapter d;
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.ojQ
|
||
|
public final void a(Object obj) {
|
||
|
this.d.l.G();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = this;
|
||
|
}
|
||
|
});
|
||
|
case 13:
|
||
|
final InterfaceC12854fJL interfaceC12854fJL4 = this.l;
|
||
|
Objects.requireNonNull(interfaceC12854fJL4);
|
||
|
return new PredictiveHolder(viewGroup, new ojQ(interfaceC12854fJL4) { // from class: o.ewl
|
||
|
private InterfaceC12854fJL a;
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.ojQ
|
||
|
public final void a(Object obj) {
|
||
|
this.a.c((C0907Rf.Sts) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = interfaceC12854fJL4;
|
||
|
}
|
||
|
});
|
||
|
case 14:
|
||
|
final InterfaceC12854fJL interfaceC12854fJL5 = this.l;
|
||
|
Objects.requireNonNull(interfaceC12854fJL5);
|
||
|
BannerViewHolder bannerViewHolder = new BannerViewHolder(viewGroup, new ojQ(interfaceC12854fJL5) { // from class: o.ewi
|
||
|
private InterfaceC12854fJL a;
|
||
|
|
||
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.ojQ
|
||
|
public final void a(Object obj) {
|
||
|
this.a.e((C0907Rf.Sts) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = interfaceC12854fJL5;
|
||
|
}
|
||
|
});
|
||
|
wdQ wdq = this.b;
|
||
|
if (wdq != null) {
|
||
|
wdq.e(bannerViewHolder);
|
||
|
}
|
||
|
return bannerViewHolder;
|
||
|
default:
|
||
|
return new saX(viewGroup);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.iIq
|
||
|
public final void b(int i) {
|
||
|
this.c = this.j.x.a_(i);
|
||
|
View view = this.f8011o;
|
||
|
if (view != null) {
|
||
|
view.setVisibility(0);
|
||
|
}
|
||
|
if (this.e.get(i).L != AyW.STATIC_SHORTCUT) {
|
||
|
this.i.a(false);
|
||
|
}
|
||
|
int height = this.j.getHeight();
|
||
|
View view2 = this.d;
|
||
|
if (view2 != null) {
|
||
|
ViewGroup.LayoutParams layoutParams = view2.getLayoutParams();
|
||
|
layoutParams.height = height;
|
||
|
this.d.setLayoutParams(layoutParams);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final void b(boolean z) {
|
||
|
zEQ d;
|
||
|
this.f = z;
|
||
|
YKU yku = new YKU(this.e);
|
||
|
final Class<IeS> cls = IeS.class;
|
||
|
YKU yku2 = new YKU(yku.a, new GEP(yku.b, new Jel(cls) { // from class: o.eww
|
||
|
private Class e;
|
||
|
|
||
|
@Override // o.Jel
|
||
|
public final boolean e(Object obj) {
|
||
|
boolean isInstance;
|
||
|
isInstance = this.e.isInstance((C0907Rf.Sts) obj);
|
||
|
return isInstance;
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.e = cls;
|
||
|
}
|
||
|
}));
|
||
|
if (yku2.b.hasNext()) {
|
||
|
d = zEQ.a(yku2.b.next());
|
||
|
} else {
|
||
|
d = zEQ.d();
|
||
|
}
|
||
|
if (z && d.d == 0) {
|
||
|
this.e.add(new IeS());
|
||
|
notifyDataSetChanged();
|
||
|
} else {
|
||
|
if (z || d.d == 0) {
|
||
|
return;
|
||
|
}
|
||
|
List<C0907Rf.Sts> list = this.e;
|
||
|
T t = d.d;
|
||
|
if (t != 0) {
|
||
|
list.remove(t);
|
||
|
notifyDataSetChanged();
|
||
|
return;
|
||
|
}
|
||
|
throw new NoSuchElementException("No value present");
|
||
|
}
|
||
|
}
|
||
|
}
|