what-the-bank/sources/com/scb/phone/view/custom/remittance/TransferOptionView.java

109 lines
3.4 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.custom.remittance;
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.LinearLayout;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.bumptech.glide.Glide;
import com.scb.phone.R;
import com.scb.phone.view.custom.remittance.TransferOptionView;
import o.C1106Vt;
import o.C14866gag;
import o.C14957gcv;
import o.Cdw;
import o.InterfaceC14894gbR;
/* loaded from: classes5.dex */
public final class TransferOptionView extends LinearLayout {
@BindView
public ConstraintLayout clTransfer;
@BindView
public ImageView ivTransfer;
@BindView
public TextView tvTransfer;
public TransferOptionView(Context context) {
super(context);
Object systemService = getContext().getSystemService("layout_inflater");
C14957gcv.d(systemService, "");
((LayoutInflater) systemService).inflate(R.layout.2131559215, (ViewGroup) this, true);
ButterKnife.c(this);
}
public final void setChannel(final C1106Vt c1106Vt, final InterfaceC14894gbR<? super C1106Vt, C14866gag> interfaceC14894gbR) {
C14957gcv.e(c1106Vt, "");
C14957gcv.e(interfaceC14894gbR, "");
ConstraintLayout constraintLayout = this.clTransfer;
ConstraintLayout constraintLayout2 = null;
if (constraintLayout == null) {
C14957gcv.a("");
constraintLayout = null;
}
constraintLayout.setVisibility(0);
Cdw<Drawable> c = Glide.e(getContext()).c(c1106Vt.e);
ImageView imageView = this.ivTransfer;
if (imageView == null) {
C14957gcv.a("");
imageView = null;
}
c.Dq_(imageView);
TextView textView = this.tvTransfer;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
textView.setText(c1106Vt.i);
ConstraintLayout constraintLayout3 = this.clTransfer;
if (constraintLayout3 != null) {
constraintLayout2 = constraintLayout3;
} else {
C14957gcv.a("");
}
constraintLayout2.setOnClickListener(new View.OnClickListener(interfaceC14894gbR, c1106Vt) { // from class: o.eEh
private InterfaceC14894gbR d;
private C1106Vt e;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
TransferOptionView.c(this.d, this.e);
}
{
this.d = interfaceC14894gbR;
this.e = c1106Vt;
}
});
}
public static /* synthetic */ void c(InterfaceC14894gbR interfaceC14894gbR, C1106Vt c1106Vt) {
C14957gcv.e(interfaceC14894gbR, "");
C14957gcv.e(c1106Vt, "");
interfaceC14894gbR.invoke(c1106Vt);
}
public final void setTvTransfer(TextView textView) {
C14957gcv.e(textView, "");
this.tvTransfer = textView;
}
public final void setIvTransfer(ImageView imageView) {
C14957gcv.e(imageView, "");
this.ivTransfer = imageView;
}
public final void setClTransfer(ConstraintLayout constraintLayout) {
C14957gcv.e(constraintLayout, "");
this.clTransfer = constraintLayout;
}
}