99 lines
4.2 KiB
Java
99 lines
4.2 KiB
Java
|
package o;
|
||
|
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.TextView;
|
||
|
import androidx.recyclerview.widget.RecyclerView;
|
||
|
import com.scb.phone.view.adapter.hml.CompanyItemViewHolder;
|
||
|
import java.util.List;
|
||
|
|
||
|
/* renamed from: o.euI, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class C12227euI extends RecyclerView.Sts<AbstractC12225euG> {
|
||
|
private final InterfaceC14890gbN<C14866gag> a;
|
||
|
public List<? extends InterfaceC0727Nd> d;
|
||
|
private final InterfaceC14894gbR<MQ, C14866gag> e;
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ void onBindViewHolder(AbstractC12225euG abstractC12225euG, int i) {
|
||
|
AbstractC12225euG abstractC12225euG2 = abstractC12225euG;
|
||
|
C14957gcv.e(abstractC12225euG2, "");
|
||
|
InterfaceC0727Nd interfaceC0727Nd = this.d.get(i);
|
||
|
if (abstractC12225euG2 instanceof CompanyItemViewHolder) {
|
||
|
final CompanyItemViewHolder companyItemViewHolder = (CompanyItemViewHolder) abstractC12225euG2;
|
||
|
C14957gcv.d(interfaceC0727Nd, "");
|
||
|
final MQ mq = (MQ) interfaceC0727Nd;
|
||
|
C14957gcv.e(mq, "");
|
||
|
companyItemViewHolder.itemView.setOnClickListener(new View.OnClickListener(companyItemViewHolder, mq) { // from class: o.euJ
|
||
|
private MQ c;
|
||
|
private CompanyItemViewHolder d;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view) {
|
||
|
CompanyItemViewHolder.d(this.d, this.c);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = companyItemViewHolder;
|
||
|
this.c = mq;
|
||
|
}
|
||
|
});
|
||
|
if (mq.c) {
|
||
|
mq.c = false;
|
||
|
companyItemViewHolder.c.invoke();
|
||
|
}
|
||
|
TextView textView = companyItemViewHolder.tvName;
|
||
|
if (textView == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView = null;
|
||
|
}
|
||
|
textView.setText(mq.a);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Type inference failed for: r1v16, types: [androidx.recyclerview.widget.RecyclerView$zJl, o.euG] */
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ AbstractC12225euG onCreateViewHolder(ViewGroup viewGroup, int i) {
|
||
|
RecyclerView.zJl zjl;
|
||
|
C14957gcv.e(viewGroup, "");
|
||
|
if (i == MS.ITEM.viewType) {
|
||
|
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(com.scb.phone.R.layout.2131559194, viewGroup, false);
|
||
|
C14957gcv.c(inflate, "");
|
||
|
zjl = (AbstractC12225euG) new CompanyItemViewHolder(inflate, this.e, this.a);
|
||
|
} else if (i == MS.HEADER.viewType) {
|
||
|
View inflate2 = LayoutInflater.from(viewGroup.getContext()).inflate(com.scb.phone.R.layout.2131558962, viewGroup, false);
|
||
|
C14957gcv.c(inflate2, "");
|
||
|
zjl = (AbstractC12225euG) new C12226euH(inflate2);
|
||
|
} else if (i == MS.FOOTER.viewType) {
|
||
|
View inflate3 = LayoutInflater.from(viewGroup.getContext()).inflate(com.scb.phone.R.layout.2131558961, viewGroup, false);
|
||
|
C14957gcv.c(inflate3, "");
|
||
|
zjl = (AbstractC12225euG) new C12226euH(inflate3);
|
||
|
} else {
|
||
|
View inflate4 = LayoutInflater.from(viewGroup.getContext()).inflate(com.scb.phone.R.layout.2131560160, viewGroup, false);
|
||
|
C14957gcv.c(inflate4, "");
|
||
|
zjl = (AbstractC12225euG) new C12226euH(inflate4);
|
||
|
}
|
||
|
return zjl;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
public C12227euI(InterfaceC14894gbR<? super MQ, C14866gag> interfaceC14894gbR, InterfaceC14890gbN<C14866gag> interfaceC14890gbN) {
|
||
|
C14957gcv.e(interfaceC14894gbR, "");
|
||
|
C14957gcv.e(interfaceC14890gbN, "");
|
||
|
this.e = interfaceC14894gbR;
|
||
|
this.a = interfaceC14890gbN;
|
||
|
this.d = C14851gaI.c;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final int getItemCount() {
|
||
|
return this.d.size();
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final int getItemViewType(int i) {
|
||
|
return this.d.get(i).b();
|
||
|
}
|
||
|
}
|