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

141 lines
4.6 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import java.util.List;
import o.C12486ezC;
/* renamed from: o.ezC, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12486ezC extends BjL<C0375Fe> {
public Integer b;
public Integer d;
public List<C0375Fe> e;
public Integer f;
private final Context i;
private final RVV j;
/* renamed from: o.ezC$RVV */
/* loaded from: classes5.dex */
public interface RVV {
void c(String str, String str2, String str3);
void d(String str, String str2, int i);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C12486ezC(Context context, List<C0375Fe> list, RVV rvv) {
super(context, list);
C14957gcv.e(context, "");
C14957gcv.e(list, "");
this.i = context;
this.e = list;
this.j = rvv;
}
@Override // o.BjL
public final View anU_(ViewGroup viewGroup) {
C14957gcv.e(viewGroup, "");
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(com.scb.phone.R.layout.2131559064, viewGroup, false);
C14957gcv.c(inflate, "");
return inflate;
}
@Override // o.BjL
public final void c(View view, final int i) {
C14957gcv.e(view, "");
ImageView imageView = (ImageView) view.findViewById(com.scb.phone.R.id.background_image);
ImageView imageView2 = (ImageView) view.findViewById(com.scb.phone.R.id.close_button);
RelativeLayout relativeLayout = (RelativeLayout) view.findViewById(com.scb.phone.R.id.rl_banner_image_layout);
int dimension = (int) this.i.getResources().getDimension(com.scb.phone.R.dimen.f17632131165529);
Integer num = this.d;
if (num != null) {
imageView.getLayoutParams().height = num.intValue();
}
if (this.f != null) {
relativeLayout.setBackgroundResource(com.scb.phone.R.drawable.bg_light_gray_rounded);
}
Context context = this.i;
C14957gcv.c(context, "");
Integer num2 = this.f;
int intValue = num2 != null ? num2.intValue() : com.scb.phone.R.drawable.bg_white_rounded;
C14957gcv.e(context, "");
Drawable drawable = nMh.getDrawable(context, intValue);
String str = this.e.get(i).j;
Integer num3 = this.b;
if (num3 != null) {
dimension = num3.intValue();
}
C12891fKc.azA_(drawable, imageView, str, dimension);
imageView2.setVisibility(this.e.get(i).h ? 0 : 8);
final RVV rvv = this.j;
if (rvv != null) {
imageView.setOnClickListener(new View.OnClickListener(rvv, this, i) { // from class: o.ezx
private int b;
private C12486ezC c;
private C12486ezC.RVV d;
@Override // android.view.View.OnClickListener
public final void onClick(View view2) {
C12486ezC.b(this.d, this.c, this.b);
}
{
this.d = rvv;
this.c = this;
this.b = i;
}
});
imageView2.setOnClickListener(new View.OnClickListener(rvv, this, i) { // from class: o.ezz
private C12486ezC b;
private int c;
private C12486ezC.RVV e;
@Override // android.view.View.OnClickListener
public final void onClick(View view2) {
C12486ezC.e(this.e, this.b, this.c);
}
{
this.e = rvv;
this.b = this;
this.c = i;
}
});
}
}
/* renamed from: o.ezC$LWm */
/* loaded from: classes5.dex */
public static final class LWm {
private LWm() {
}
public /* synthetic */ LWm(byte b) {
this();
}
}
public static /* synthetic */ void e(RVV rvv, C12486ezC c12486ezC, int i) {
C14957gcv.e(rvv, "");
C14957gcv.e(c12486ezC, "");
rvv.d(c12486ezC.e.get(i).b, c12486ezC.e.get(i).e, i);
}
public static /* synthetic */ void b(RVV rvv, C12486ezC c12486ezC, int i) {
C14957gcv.e(rvv, "");
C14957gcv.e(c12486ezC, "");
rvv.c(c12486ezC.e.get(i).b, c12486ezC.e.get(i).e, c12486ezC.e.get(i).d);
}
static {
new LWm((byte) 0);
}
}