130 lines
5.2 KiB
Java
130 lines
5.2 KiB
Java
|
package o;
|
||
|
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.FrameLayout;
|
||
|
import android.widget.TextView;
|
||
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||
|
import androidx.recyclerview.widget.RecyclerView;
|
||
|
import java.util.List;
|
||
|
import o.MK;
|
||
|
|
||
|
/* renamed from: o.eun, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class C12258eun extends RecyclerView.Sts<RecyclerView.zJl> {
|
||
|
public List<? extends MK> c;
|
||
|
private final MJ e;
|
||
|
|
||
|
/* renamed from: o.eun$LWm */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class LWm {
|
||
|
private LWm() {
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ LWm(byte b) {
|
||
|
this();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public C12258eun(MJ mj) {
|
||
|
C14957gcv.e(mj, "");
|
||
|
this.e = mj;
|
||
|
this.c = C14851gaI.c;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final RecyclerView.zJl onCreateViewHolder(ViewGroup viewGroup, int i) {
|
||
|
C14957gcv.e(viewGroup, "");
|
||
|
if (i == 0) {
|
||
|
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(com.scb.phone.R.layout.2131560003, viewGroup, false);
|
||
|
RecyclerView recyclerView = (RecyclerView) qeC.e(inflate, com.scb.phone.R.id.rv_product_menu);
|
||
|
if (recyclerView != null) {
|
||
|
PaK paK = new PaK((FrameLayout) inflate, recyclerView);
|
||
|
C14957gcv.c(paK, "");
|
||
|
return new C12268eux(paK, this.e);
|
||
|
}
|
||
|
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(com.scb.phone.R.id.rv_product_menu)));
|
||
|
}
|
||
|
if (i == 1) {
|
||
|
View inflate2 = LayoutInflater.from(viewGroup.getContext()).inflate(com.scb.phone.R.layout.2131560001, viewGroup, false);
|
||
|
TextView textView = (TextView) qeC.e(inflate2, com.scb.phone.R.id.tv_label);
|
||
|
if (textView != null) {
|
||
|
VCA vca = new VCA((FrameLayout) inflate2, textView);
|
||
|
C14957gcv.c(vca, "");
|
||
|
return new C12263eus(vca);
|
||
|
}
|
||
|
throw new NullPointerException("Missing required view with ID: ".concat(inflate2.getResources().getResourceName(com.scb.phone.R.id.tv_label)));
|
||
|
}
|
||
|
if (i != 2) {
|
||
|
throw new NullPointerException("View Type doesn't match with any existing order detail type");
|
||
|
}
|
||
|
View inflate3 = LayoutInflater.from(viewGroup.getContext()).inflate(com.scb.phone.R.layout.2131560005, viewGroup, false);
|
||
|
RecyclerView recyclerView2 = (RecyclerView) qeC.e(inflate3, com.scb.phone.R.id.rv_recommended_products);
|
||
|
if (recyclerView2 != null) {
|
||
|
C15743iHj c15743iHj = new C15743iHj((FrameLayout) inflate3, recyclerView2);
|
||
|
C14957gcv.c(c15743iHj, "");
|
||
|
return new C12270euz(c15743iHj, this.e);
|
||
|
}
|
||
|
throw new NullPointerException("Missing required view with ID: ".concat(inflate3.getResources().getResourceName(com.scb.phone.R.id.rv_recommended_products)));
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final void onBindViewHolder(RecyclerView.zJl zjl, int i) {
|
||
|
C14957gcv.e(zjl, "");
|
||
|
MK mk = (MK) C14881gav.b(this.c, i);
|
||
|
if (!(zjl instanceof C12263eus) || !(mk instanceof MK.HBt)) {
|
||
|
if ((zjl instanceof C12268eux) && (mk instanceof MK.IeS)) {
|
||
|
C12268eux c12268eux = (C12268eux) zjl;
|
||
|
List<MG> list = ((MK.IeS) mk).c;
|
||
|
C14957gcv.e(list, "");
|
||
|
RecyclerView recyclerView = c12268eux.a.b;
|
||
|
recyclerView.setAdapter(c12268eux.e);
|
||
|
recyclerView.getContext();
|
||
|
recyclerView.setLayoutManager(new LinearLayoutManager(0, false));
|
||
|
C12264eut c12264eut = c12268eux.e;
|
||
|
C14957gcv.e(list, "");
|
||
|
c12264eut.e = list;
|
||
|
c12264eut.notifyDataSetChanged();
|
||
|
return;
|
||
|
}
|
||
|
if ((zjl instanceof C12270euz) && (mk instanceof MK.Sts)) {
|
||
|
C12270euz c12270euz = (C12270euz) zjl;
|
||
|
List<MH> list2 = ((MK.Sts) mk).c;
|
||
|
C14957gcv.e(list2, "");
|
||
|
RecyclerView recyclerView2 = c12270euz.e.c;
|
||
|
recyclerView2.setAdapter(c12270euz.a);
|
||
|
recyclerView2.getContext();
|
||
|
recyclerView2.setLayoutManager(new LinearLayoutManager(0, false));
|
||
|
C12262eur c12262eur = c12270euz.a;
|
||
|
C14957gcv.e(list2, "");
|
||
|
c12262eur.e = list2;
|
||
|
c12262eur.notifyDataSetChanged();
|
||
|
return;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
String str = ((MK.HBt) mk).e;
|
||
|
C14957gcv.e(str, "");
|
||
|
((C12263eus) zjl).d.b.setText(str);
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final int getItemViewType(int i) {
|
||
|
MK mk = (MK) C14881gav.b(this.c, i);
|
||
|
if (mk != null) {
|
||
|
return mk.a;
|
||
|
}
|
||
|
return 3;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final int getItemCount() {
|
||
|
return this.c.size();
|
||
|
}
|
||
|
|
||
|
static {
|
||
|
new LWm((byte) 0);
|
||
|
}
|
||
|
}
|