158 lines
4.9 KiB
Java
158 lines
4.9 KiB
Java
|
package com.scb.phone.view.custom.item;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.util.AttributeSet;
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.ImageView;
|
||
|
import android.widget.TextView;
|
||
|
import butterknife.BindView;
|
||
|
import butterknife.ButterKnife;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.components.ItemCustom;
|
||
|
import com.squareup.picasso.Picasso;
|
||
|
import o.C13020fOa;
|
||
|
import o.C14957gcv;
|
||
|
import o.QL;
|
||
|
import o.YD;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class ItemFooterContentCustom extends ItemCustom<QL> {
|
||
|
|
||
|
@BindView
|
||
|
public ImageView ivImage;
|
||
|
|
||
|
@BindView
|
||
|
public TextView textView;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvRemark;
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
public ItemFooterContentCustom(Context context) {
|
||
|
super(context);
|
||
|
C14957gcv.e(context, "");
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
public ItemFooterContentCustom(Context context, AttributeSet attributeSet) {
|
||
|
super(context, attributeSet);
|
||
|
C14957gcv.e(context, "");
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
public ItemFooterContentCustom(Context context, AttributeSet attributeSet, int i) {
|
||
|
super(context, attributeSet, i);
|
||
|
C14957gcv.e(context, "");
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.components.ItemCustom
|
||
|
public final void a(Context context) {
|
||
|
LayoutInflater.from(context).inflate(R.layout.2131560006, (ViewGroup) this, true);
|
||
|
ButterKnife.c(this);
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
/* JADX WARN: Type inference failed for: r6v3, types: [android.widget.TextView] */
|
||
|
/* JADX WARN: Type inference failed for: r6v6, types: [android.widget.TextView] */
|
||
|
@Override // com.scb.phone.components.ItemCustom
|
||
|
public final void setUpWithDisplay(QL ql) {
|
||
|
C14957gcv.e(ql, "");
|
||
|
int i = LWm.d[ql.e.ordinal()];
|
||
|
ImageView imageView = null;
|
||
|
if (i != 1) {
|
||
|
if (i == 2) {
|
||
|
if (ql.b.length() > 0) {
|
||
|
TextView textView = this.tvRemark;
|
||
|
if (textView == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView = null;
|
||
|
}
|
||
|
textView.setText(ql.b);
|
||
|
?? r6 = this.tvRemark;
|
||
|
if (r6 != 0) {
|
||
|
imageView = r6;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
imageView.setVisibility(0);
|
||
|
return;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
if (i == 3) {
|
||
|
if (ql.a.length() > 0) {
|
||
|
C13020fOa b = Picasso.d().e(ql.a).b(R.drawable.default_card_without_logo);
|
||
|
ImageView imageView2 = this.ivImage;
|
||
|
if (imageView2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
imageView2 = null;
|
||
|
}
|
||
|
b.aBu_(imageView2, null);
|
||
|
ImageView imageView3 = this.ivImage;
|
||
|
if (imageView3 != null) {
|
||
|
imageView = imageView3;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
imageView.setVisibility(0);
|
||
|
return;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
if (ql.b.length() > 0) {
|
||
|
TextView textView2 = this.textView;
|
||
|
if (textView2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView2 = null;
|
||
|
}
|
||
|
textView2.setText(ql.b);
|
||
|
?? r62 = this.textView;
|
||
|
if (r62 != 0) {
|
||
|
imageView = r62;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
imageView.setVisibility(0);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final void setTvRemark(TextView textView) {
|
||
|
C14957gcv.e(textView, "");
|
||
|
this.tvRemark = textView;
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final /* synthetic */ class LWm {
|
||
|
public static final int[] d;
|
||
|
|
||
|
static {
|
||
|
int[] iArr = new int[YD.values().length];
|
||
|
try {
|
||
|
iArr[YD.FOOTER_CONTENT.ordinal()] = 1;
|
||
|
} catch (NoSuchFieldError unused) {
|
||
|
}
|
||
|
try {
|
||
|
iArr[YD.FOOTER_REMARK.ordinal()] = 2;
|
||
|
} catch (NoSuchFieldError unused2) {
|
||
|
}
|
||
|
try {
|
||
|
iArr[YD.FOOTER_IMAGE.ordinal()] = 3;
|
||
|
} catch (NoSuchFieldError unused3) {
|
||
|
}
|
||
|
d = iArr;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final void setTextView(TextView textView) {
|
||
|
C14957gcv.e(textView, "");
|
||
|
this.textView = textView;
|
||
|
}
|
||
|
|
||
|
public final void setIvImage(ImageView imageView) {
|
||
|
C14957gcv.e(imageView, "");
|
||
|
this.ivImage = imageView;
|
||
|
}
|
||
|
}
|