105 lines
3.9 KiB
Java
105 lines
3.9 KiB
Java
package o;
|
|
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.ImageView;
|
|
import android.widget.TextView;
|
|
import androidx.cardview.widget.CardView;
|
|
import androidx.recyclerview.widget.RecyclerView;
|
|
import java.util.List;
|
|
|
|
/* renamed from: o.eur, reason: case insensitive filesystem */
|
|
/* loaded from: classes5.dex */
|
|
public final class C12262eur extends RecyclerView.Sts<C12269euy> {
|
|
private final MJ a;
|
|
public List<MH> e;
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final /* synthetic */ void onBindViewHolder(C12269euy c12269euy, int i) {
|
|
final C12269euy c12269euy2 = c12269euy;
|
|
C14957gcv.e(c12269euy2, "");
|
|
final MH mh = this.e.get(i);
|
|
C14957gcv.e(mh, "");
|
|
String str = mh.a;
|
|
ImageView imageView = c12269euy2.d.a;
|
|
C14957gcv.c(imageView, "");
|
|
C10456eEq.aqe_(imageView, str, new PNS().c(com.scb.phone.R.drawable.ic_productcard_placeholder).a(com.scb.phone.R.drawable.ic_productcard_placeholder).c(RBw.d, new CDU()));
|
|
c12269euy2.d.c.setText(mh.c);
|
|
String str2 = mh.e;
|
|
TextView textView = c12269euy2.d.e;
|
|
C14957gcv.c(textView, "");
|
|
TextView textView2 = textView;
|
|
String str3 = str2;
|
|
boolean z = str3.length() == 0;
|
|
C14957gcv.e(textView2, "");
|
|
textView2.setVisibility(z ? 4 : 0);
|
|
textView.setText(str3);
|
|
final ACD acd = c12269euy2.d;
|
|
acd.c.post(new Runnable(acd) { // from class: o.euA
|
|
private ACD e;
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
C12269euy.b(this.e);
|
|
}
|
|
|
|
{
|
|
this.e = acd;
|
|
}
|
|
});
|
|
c12269euy2.d.d.setOnClickListener(new View.OnClickListener(c12269euy2, mh) { // from class: o.euw
|
|
private MH b;
|
|
private C12269euy c;
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
C12269euy.a(this.c, this.b);
|
|
}
|
|
|
|
{
|
|
this.c = c12269euy2;
|
|
this.b = mh;
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final /* synthetic */ C12269euy onCreateViewHolder(ViewGroup viewGroup, int i) {
|
|
C14957gcv.e(viewGroup, "");
|
|
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(com.scb.phone.R.layout.2131560004, viewGroup, false);
|
|
CardView cardView = (CardView) inflate;
|
|
int i2 = com.scb.phone.R.id.iv_product;
|
|
ImageView imageView = (ImageView) qeC.e(inflate, com.scb.phone.R.id.iv_product);
|
|
if (imageView != null) {
|
|
i2 = com.scb.phone.R.id.tv_description;
|
|
TextView textView = (TextView) qeC.e(inflate, com.scb.phone.R.id.tv_description);
|
|
if (textView != null) {
|
|
i2 = com.scb.phone.R.id.tv_fake;
|
|
TextView textView2 = (TextView) qeC.e(inflate, com.scb.phone.R.id.tv_fake);
|
|
if (textView2 != null) {
|
|
i2 = com.scb.phone.R.id.tv_header;
|
|
TextView textView3 = (TextView) qeC.e(inflate, com.scb.phone.R.id.tv_header);
|
|
if (textView3 != null) {
|
|
ACD acd = new ACD(cardView, cardView, imageView, textView, textView2, textView3);
|
|
C14957gcv.c(acd, "");
|
|
return new C12269euy(acd, this.a);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i2)));
|
|
}
|
|
|
|
public C12262eur(MJ mj) {
|
|
C14957gcv.e(mj, "");
|
|
this.a = mj;
|
|
this.e = C14851gaI.c;
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final int getItemCount() {
|
|
return this.e.size();
|
|
}
|
|
}
|