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

133 lines
5.1 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.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import com.scb.phone.R;
import com.scb.phone.view.custom.profilemanagement.AddAccountItemCustomView;
import o.AhQ;
import o.C12400exW;
import o.C14957gcv;
import o.UU;
import o.UV;
import o.gdZ;
import o.nMh;
import o.qeC;
/* loaded from: classes5.dex */
public final class AddAccountItemCustomView extends AddAccountCustomView {
private final AhQ a;
private C12400exW.HBt d;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public AddAccountItemCustomView(Context context) {
super(context);
C14957gcv.e(context, "");
AddAccountItemCustomView addAccountItemCustomView = this;
View inflate = LayoutInflater.from(context).inflate(R.layout.2131558908, (ViewGroup) addAccountItemCustomView, false);
addAccountItemCustomView.addView(inflate);
int i = R.id.account_text;
TextView textView = (TextView) qeC.e(inflate, R.id.account_text);
if (textView != null) {
i = R.id.branch_text;
TextView textView2 = (TextView) qeC.e(inflate, R.id.branch_text);
if (textView2 != null) {
i = R.id.iv_right_arrow_image;
ImageView imageView = (ImageView) qeC.e(inflate, R.id.iv_right_arrow_image);
if (imageView != null) {
i = R.id.ll_layout_account;
LinearLayout linearLayout = (LinearLayout) qeC.e(inflate, R.id.ll_layout_account);
if (linearLayout != null) {
i = R.id.selector;
ConstraintLayout constraintLayout = (ConstraintLayout) qeC.e(inflate, R.id.selector);
if (constraintLayout != null) {
i = R.id.separator_view;
View e = qeC.e(inflate, R.id.separator_view);
if (e != null) {
i = R.id.type_text;
TextView textView3 = (TextView) qeC.e(inflate, R.id.type_text);
if (textView3 != null) {
AhQ ahQ = new AhQ((RelativeLayout) inflate, textView, textView2, imageView, linearLayout, constraintLayout, e, textView3);
C14957gcv.c(ahQ, "");
this.a = ahQ;
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 UU uu = (UU) uv;
AhQ ahQ = this.a;
ahQ.a.setText(uu.m);
if (C14957gcv.b((Object) "3010", (Object) uu.g)) {
int color = nMh.getColor(getContext(), R.color.f3412131099849);
ahQ.a.setTextColor(color);
ahQ.d.setTextColor(color);
ahQ.e.setTextColor(color);
} else {
int color2 = nMh.getColor(getContext(), R.color.f2982131099805);
int color3 = nMh.getColor(getContext(), R.color.f3092131099816);
ahQ.a.setTextColor(color2);
ahQ.d.setTextColor(color2);
ahQ.e.setTextColor(color3);
}
String str = uu.a;
if (!(str == null || gdZ.d((CharSequence) str))) {
ahQ.d.setVisibility(0);
ahQ.d.setText(uu.a);
} else {
ahQ.d.setVisibility(8);
}
String str2 = uu.d;
if (!(str2 == null || gdZ.d((CharSequence) str2))) {
ahQ.e.setVisibility(0);
ahQ.e.setText(uu.d);
} else {
ahQ.e.setVisibility(8);
}
setOnClickListener(new View.OnClickListener(this, uu) { // from class: o.eDV
private AddAccountItemCustomView b;
private UU e;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
AddAccountItemCustomView.a(this.b, this.e);
}
{
this.b = this;
this.e = uu;
}
});
ahQ.c.setVisibility(uu.r ? 8 : 0);
}
public static /* synthetic */ void a(AddAccountItemCustomView addAccountItemCustomView, UU uu) {
C14957gcv.e(addAccountItemCustomView, "");
C14957gcv.e(uu, "");
C12400exW.HBt hBt = addAccountItemCustomView.d;
if (hBt != null) {
hBt.a(uu);
}
}
public final void setListener(C12400exW.HBt hBt) {
C14957gcv.e(hBt, "");
this.d = hBt;
}
}