what-the-bank/sources/com/scb/phone/view/custom/profilemanagement/AddAccountPendingCardCustom...

97 lines
3.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.custom.profilemanagement;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.scb.phone.R;
import com.scb.phone.view.custom.profilemanagement.AddAccountPendingCardCustomView;
import o.C12400exW;
import o.C14957gcv;
import o.Ggj;
import o.UV;
import o.UY;
import o.qeC;
/* loaded from: classes5.dex */
public final class AddAccountPendingCardCustomView extends AddAccountCustomView {
private C12400exW.RVV c;
private final Ggj e;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public AddAccountPendingCardCustomView(Context context) {
super(context);
C14957gcv.e(context, "");
AddAccountPendingCardCustomView addAccountPendingCardCustomView = this;
View inflate = LayoutInflater.from(context).inflate(R.layout.2131558909, (ViewGroup) addAccountPendingCardCustomView, false);
addAccountPendingCardCustomView.addView(inflate);
int i = R.id.activate_button;
Button button = (Button) qeC.e(inflate, R.id.activate_button);
if (button != null) {
i = R.id.linear_activate;
LinearLayout linearLayout = (LinearLayout) qeC.e(inflate, R.id.linear_activate);
if (linearLayout != null) {
i = R.id.pending_card_subtitle;
TextView textView = (TextView) qeC.e(inflate, R.id.pending_card_subtitle);
if (textView != null) {
i = R.id.pending_card_title;
TextView textView2 = (TextView) qeC.e(inflate, R.id.pending_card_title);
if (textView2 != null) {
i = R.id.separator_view;
View e = qeC.e(inflate, R.id.separator_view);
if (e != null) {
Ggj ggj = new Ggj((RelativeLayout) inflate, button, linearLayout, textView, textView2, e);
C14957gcv.c(ggj, "");
this.e = ggj;
return;
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
}
@Override // com.scb.phone.view.custom.profilemanagement.AddAccountCustomView
public final void setDisplay(UV uv) {
C14957gcv.e(uv, "");
final UY uy = (UY) uv;
Ggj ggj = this.e;
ggj.c.setText(uy.e);
ggj.b.setText(uy.a);
ggj.a.setOnClickListener(new View.OnClickListener(this, uy) { // from class: o.eDU
private UY d;
private AddAccountPendingCardCustomView e;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
AddAccountPendingCardCustomView.d(this.e, this.d);
}
{
this.e = this;
this.d = uy;
}
});
ggj.e.setVisibility(uy.r ? 8 : 0);
}
public static /* synthetic */ void d(AddAccountPendingCardCustomView addAccountPendingCardCustomView, UY uy) {
C14957gcv.e(addAccountPendingCardCustomView, "");
C14957gcv.e(uy, "");
C12400exW.RVV rvv = addAccountPendingCardCustomView.c;
if (rvv != null) {
rvv.c(uy);
}
}
public final void setListener(C12400exW.RVV rvv) {
C14957gcv.e(rvv, "");
this.c = rvv;
}
}