123 lines
4.2 KiB
Java
123 lines
4.2 KiB
Java
package com.scb.phone.view.custom.additionaldocument;
|
|
|
|
import android.content.Context;
|
|
import android.graphics.drawable.Drawable;
|
|
import android.view.LayoutInflater;
|
|
import android.view.ViewGroup;
|
|
import android.widget.ImageView;
|
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
|
import butterknife.BindView;
|
|
import butterknife.ButterKnife;
|
|
import com.scb.phone.R;
|
|
import com.scb.phone.view.custom.common.ThaiTextView;
|
|
import o.AbstractC0399Fs;
|
|
import o.C0397Fq;
|
|
import o.C0401Fu;
|
|
import o.C12891fKc;
|
|
import o.C14957gcv;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class DocumentInstructionsDetailCustomView extends ConstraintLayout {
|
|
private final AbstractC0399Fs c;
|
|
|
|
@BindView
|
|
public ThaiTextView detailText;
|
|
|
|
@BindView
|
|
public ImageView iconBottom;
|
|
|
|
@BindView
|
|
public ImageView iconTop;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public DocumentInstructionsDetailCustomView(Context context, AbstractC0399Fs abstractC0399Fs) {
|
|
super(context);
|
|
C14957gcv.e(context, "");
|
|
C14957gcv.e(abstractC0399Fs, "");
|
|
this.c = abstractC0399Fs;
|
|
Object systemService = context.getSystemService("layout_inflater");
|
|
C14957gcv.d(systemService, "");
|
|
((LayoutInflater) systemService).inflate(R.layout.2131559290, (ViewGroup) this, true);
|
|
ButterKnife.c(this);
|
|
ImageView imageView = null;
|
|
if (abstractC0399Fs instanceof C0401Fu) {
|
|
ThaiTextView thaiTextView = this.detailText;
|
|
if (thaiTextView == null) {
|
|
C14957gcv.a("");
|
|
thaiTextView = null;
|
|
}
|
|
thaiTextView.setText(((C0401Fu) abstractC0399Fs).a);
|
|
ImageView imageView2 = this.iconTop;
|
|
if (imageView2 == null) {
|
|
C14957gcv.a("");
|
|
imageView2 = null;
|
|
}
|
|
imageView2.setImageDrawable(((C0401Fu) abstractC0399Fs).b);
|
|
Drawable drawable = ((C0401Fu) abstractC0399Fs).c;
|
|
if (drawable != null) {
|
|
ImageView imageView3 = this.iconBottom;
|
|
if (imageView3 == null) {
|
|
C14957gcv.a("");
|
|
imageView3 = null;
|
|
}
|
|
imageView3.setVisibility(0);
|
|
ImageView imageView4 = this.iconBottom;
|
|
if (imageView4 != null) {
|
|
imageView = imageView4;
|
|
} else {
|
|
C14957gcv.a("");
|
|
}
|
|
imageView.setImageDrawable(drawable);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (abstractC0399Fs instanceof C0397Fq) {
|
|
ThaiTextView thaiTextView2 = this.detailText;
|
|
if (thaiTextView2 == null) {
|
|
C14957gcv.a("");
|
|
thaiTextView2 = null;
|
|
}
|
|
thaiTextView2.setText(((C0397Fq) abstractC0399Fs).e);
|
|
String str = ((C0397Fq) abstractC0399Fs).d;
|
|
ImageView imageView5 = this.iconTop;
|
|
if (imageView5 == null) {
|
|
C14957gcv.a("");
|
|
imageView5 = null;
|
|
}
|
|
C12891fKc.aze_(R.drawable.document_upload_placeholder, imageView5, str);
|
|
String str2 = ((C0397Fq) abstractC0399Fs).b;
|
|
if (str2 != null) {
|
|
ImageView imageView6 = this.iconBottom;
|
|
if (imageView6 == null) {
|
|
C14957gcv.a("");
|
|
imageView6 = null;
|
|
}
|
|
imageView6.setVisibility(0);
|
|
ImageView imageView7 = this.iconBottom;
|
|
if (imageView7 != null) {
|
|
imageView = imageView7;
|
|
} else {
|
|
C14957gcv.a("");
|
|
}
|
|
C12891fKc.aze_(R.drawable.document_upload_placeholder, imageView, str2);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void setIconTop(ImageView imageView) {
|
|
C14957gcv.e(imageView, "");
|
|
this.iconTop = imageView;
|
|
}
|
|
|
|
public final void setIconBottom(ImageView imageView) {
|
|
C14957gcv.e(imageView, "");
|
|
this.iconBottom = imageView;
|
|
}
|
|
|
|
public final void setDetailText(ThaiTextView thaiTextView) {
|
|
C14957gcv.e(thaiTextView, "");
|
|
this.detailText = thaiTextView;
|
|
}
|
|
}
|