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

72 lines
2.0 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.text.TextUtils;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.scb.phone.R;
import o.UU;
import o.UV;
/* loaded from: classes5.dex */
public class ReviewAccountItemCustomView extends ReviewAccountCustomView {
@BindView
TextView accountText;
@BindView
TextView branchText;
@BindView
TextView numberAccountListText;
@BindView
View separator;
@BindView
TextView typeText;
public ReviewAccountItemCustomView(Context context) {
this(context, null);
}
public ReviewAccountItemCustomView(Context context, AttributeSet attributeSet) {
this(context, attributeSet, 0);
}
public ReviewAccountItemCustomView(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
((LayoutInflater) context.getSystemService("layout_inflater")).inflate(R.layout.2131559324, (ViewGroup) this, true);
ButterKnife.c(this);
}
@Override // com.scb.phone.view.custom.profilemanagement.ReviewAccountCustomView
public void setDisplay(UV uv) {
UU uu = (UU) uv;
this.numberAccountListText.setText(uu.h);
this.accountText.setText(uu.m);
if (TextUtils.isEmpty(uu.a)) {
this.typeText.setVisibility(8);
} else {
this.typeText.setText(uu.a);
this.typeText.setVisibility(0);
}
String str = uu.d;
if (str == null || str.equalsIgnoreCase("")) {
str = uu.f;
}
if (TextUtils.isEmpty(str)) {
this.branchText.setVisibility(8);
} else {
this.branchText.setText(str);
this.branchText.setVisibility(0);
}
this.separator.setVisibility(uu.r ? 8 : 0);
}
}