what-the-bank/sources/o/C12214etw.java

154 lines
5.8 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.recyclerview.widget.RecyclerView;
import java.util.List;
import o.C12214etw;
/* renamed from: o.etw, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12214etw extends RecyclerView.Sts<HBt> {
private final Context a;
private int c;
private final List<C0656Ln> d;
private final RVV e;
/* renamed from: o.etw$RVV */
/* loaded from: classes5.dex */
public interface RVV {
void b(C0656Ln c0656Ln);
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(HBt hBt, int i) {
HBt hBt2 = hBt;
C14957gcv.e(hBt2, "");
final C0656Ln c0656Ln = this.d.get(i);
Integer valueOf = Integer.valueOf(this.c);
if (valueOf == null || valueOf.intValue() == 0) {
hBt2.b.b.measure(0, 0);
this.c = (int) (r1.getMeasuredWidth() * 0.9d);
}
final RVV rvv = this.e;
int i2 = this.c;
C14957gcv.e(c0656Ln, "");
C14957gcv.e(rvv, "");
hBt2.b.g.setText(c0656Ln.b);
hBt2.b.f.setText(c0656Ln.e);
C12891fKc.azn_(nMh.getDrawable(hBt2.e, com.scb.phone.R.color.f3412131099849), hBt2.b.e, c0656Ln.c);
hBt2.b.c.setOnClickListener(new View.OnClickListener(rvv, c0656Ln) { // from class: o.etv
private C12214etw.RVV b;
private C0656Ln d;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
C12214etw.HBt.b(this.b, this.d);
}
{
this.b = rvv;
this.d = c0656Ln;
}
});
C14742fyu c14742fyu = hBt2.b;
c14742fyu.a.setLayoutParams(new LinearLayout.LayoutParams(i2, i2));
int i3 = (int) (i2 * 0.9d);
c14742fyu.e.getLayoutParams().width = i3;
c14742fyu.e.getLayoutParams().height = (int) (i3 / 1.6d);
c14742fyu.e.requestLayout();
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ HBt onCreateViewHolder(ViewGroup viewGroup, int i) {
C14957gcv.e(viewGroup, "");
View inflate = LayoutInflater.from(this.a).inflate(com.scb.phone.R.layout.2131559107, (ViewGroup) null, false);
int i2 = com.scb.phone.R.id.cs_layout_card;
ConstraintLayout constraintLayout = (ConstraintLayout) qeC.e(inflate, com.scb.phone.R.id.cs_layout_card);
if (constraintLayout != null) {
i2 = com.scb.phone.R.id.iv_card;
ImageView imageView = (ImageView) qeC.e(inflate, com.scb.phone.R.id.iv_card);
if (imageView != null) {
i2 = com.scb.phone.R.id.ll_layout_card;
LinearLayout linearLayout = (LinearLayout) qeC.e(inflate, com.scb.phone.R.id.ll_layout_card);
if (linearLayout != null) {
i2 = com.scb.phone.R.id.ll_layout_card_bg;
ImageView imageView2 = (ImageView) qeC.e(inflate, com.scb.phone.R.id.ll_layout_card_bg);
if (imageView2 != null) {
LinearLayout linearLayout2 = (LinearLayout) inflate;
i2 = com.scb.phone.R.id.tv_easycash_product_description;
TextView textView = (TextView) qeC.e(inflate, com.scb.phone.R.id.tv_easycash_product_description);
if (textView != null) {
i2 = com.scb.phone.R.id.tv_easycash_product_title;
TextView textView2 = (TextView) qeC.e(inflate, com.scb.phone.R.id.tv_easycash_product_title);
if (textView2 != null) {
C14742fyu c14742fyu = new C14742fyu(linearLayout2, constraintLayout, imageView, linearLayout, imageView2, linearLayout2, textView, textView2);
C14957gcv.c(c14742fyu, "");
return new HBt(c14742fyu, this.a);
}
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i2)));
}
public C12214etw(Context context, List<C0656Ln> list, RVV rvv) {
C14957gcv.e(context, "");
C14957gcv.e(list, "");
C14957gcv.e(rvv, "");
this.a = context;
this.d = list;
this.e = rvv;
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
return this.d.size();
}
/* renamed from: o.etw$HBt */
/* loaded from: classes5.dex */
public static final class HBt extends RecyclerView.zJl {
final C14742fyu b;
final Context e;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public HBt(C14742fyu c14742fyu, Context context) {
super(c14742fyu.d);
C14957gcv.e(c14742fyu, "");
C14957gcv.e(context, "");
this.b = c14742fyu;
this.e = context;
}
public static /* synthetic */ void b(RVV rvv, C0656Ln c0656Ln) {
C14957gcv.e(rvv, "");
C14957gcv.e(c0656Ln, "");
rvv.b(c0656Ln);
}
}
/* renamed from: o.etw$IeS */
/* loaded from: classes5.dex */
public static final class IeS {
private IeS() {
}
public /* synthetic */ IeS(byte b) {
this();
}
}
static {
new IeS((byte) 0);
}
}