what-the-bank/sources/com/scb/phone/view/adapter/profilemanagement/ManagePromptpayProxyAdapter...

277 lines
10 KiB
Java

package com.scb.phone.view.adapter.profilemanagement;
import android.text.TextUtils;
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.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;
import com.scb.phone.R;
import com.scb.phone.view.adapter.profilemanagement.ManagePromptpayProxyAdapter;
import java.util.List;
import o.C14866gag;
import o.C14957gcv;
import o.UP;
import o.US;
import o.pyT;
/* loaded from: classes5.dex */
public final class ManagePromptpayProxyAdapter extends RecyclerView.Sts<ManagePromptpayViewHolder> {
public List<UP> a;
private final LWm d;
/* loaded from: classes5.dex */
public interface LWm {
void d(UP up);
}
/* loaded from: classes5.dex */
public final class ManagePromptpayViewHolder_ViewBinding implements Unbinder {
private ManagePromptpayViewHolder b;
public ManagePromptpayViewHolder_ViewBinding(ManagePromptpayViewHolder managePromptpayViewHolder, View view) {
this.b = managePromptpayViewHolder;
managePromptpayViewHolder.ivIconPromptPay = (ImageView) pyT.e(view, R.id.iv_icon_promptpay, "field 'ivIconPromptPay'", ImageView.class);
managePromptpayViewHolder.tvPromptPayId = (TextView) pyT.e(view, R.id.tv_promptpay_id, "field 'tvPromptPayId'", TextView.class);
managePromptpayViewHolder.rlAccount = (RelativeLayout) pyT.e(view, R.id.relative_account, "field 'rlAccount'", RelativeLayout.class);
managePromptpayViewHolder.tvAccountNo = (TextView) pyT.e(view, R.id.account, "field 'tvAccountNo'", TextView.class);
managePromptpayViewHolder.tvTypeAccount = (TextView) pyT.e(view, R.id.tv_type_account, "field 'tvTypeAccount'", TextView.class);
managePromptpayViewHolder.tvNickname = (TextView) pyT.e(view, R.id.nickname, "field 'tvNickname'", TextView.class);
managePromptpayViewHolder.linearRequestMoney = (LinearLayout) pyT.e(view, R.id.ll_request_money, "field 'linearRequestMoney'", LinearLayout.class);
managePromptpayViewHolder.linearRequestMoneyBillPay = (LinearLayout) pyT.e(view, R.id.ll_request_money_bill_pay, "field 'linearRequestMoneyBillPay'", LinearLayout.class);
managePromptpayViewHolder.vwSeparator = pyT.a(view, R.id.separator_view, "field 'vwSeparator'");
}
@Override // butterknife.Unbinder
public final void a() {
ManagePromptpayViewHolder managePromptpayViewHolder = this.b;
if (managePromptpayViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.b = null;
managePromptpayViewHolder.ivIconPromptPay = null;
managePromptpayViewHolder.tvPromptPayId = null;
managePromptpayViewHolder.rlAccount = null;
managePromptpayViewHolder.tvAccountNo = null;
managePromptpayViewHolder.tvTypeAccount = null;
managePromptpayViewHolder.tvNickname = null;
managePromptpayViewHolder.linearRequestMoney = null;
managePromptpayViewHolder.linearRequestMoneyBillPay = null;
managePromptpayViewHolder.vwSeparator = null;
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(ManagePromptpayViewHolder managePromptpayViewHolder, int i) {
final UP up;
C14866gag c14866gag;
final ManagePromptpayViewHolder managePromptpayViewHolder2 = managePromptpayViewHolder;
C14957gcv.e(managePromptpayViewHolder2, "");
List<UP> list = this.a;
if (list == null || (up = list.get(i)) == null) {
return;
}
C14957gcv.e(up, "");
TextView textView = managePromptpayViewHolder2.tvPromptPayId;
View view = null;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
textView.setText(up.i);
ImageView imageView = managePromptpayViewHolder2.ivIconPromptPay;
if (imageView == null) {
C14957gcv.a("");
imageView = null;
}
imageView.setImageResource(up.h == 1 ? R.drawable.ic_cid : R.drawable.ic_mobile);
US us = up.b;
if (us != null) {
RelativeLayout relativeLayout = managePromptpayViewHolder2.rlAccount;
if (relativeLayout == null) {
C14957gcv.a("");
relativeLayout = null;
}
relativeLayout.setVisibility(0);
TextView textView2 = managePromptpayViewHolder2.tvAccountNo;
if (textView2 == null) {
C14957gcv.a("");
textView2 = null;
}
textView2.setText(us.c);
TextView textView3 = managePromptpayViewHolder2.tvTypeAccount;
if (textView3 == null) {
C14957gcv.a("");
textView3 = null;
}
textView3.setText(us.d);
if (!TextUtils.isEmpty(us.a)) {
TextView textView4 = managePromptpayViewHolder2.tvNickname;
if (textView4 == null) {
C14957gcv.a("");
textView4 = null;
}
textView4.setVisibility(0);
TextView textView5 = managePromptpayViewHolder2.tvNickname;
if (textView5 == null) {
C14957gcv.a("");
textView5 = null;
}
textView5.setText(us.a);
} else {
TextView textView6 = managePromptpayViewHolder2.tvNickname;
if (textView6 == null) {
C14957gcv.a("");
textView6 = null;
}
textView6.setVisibility(8);
}
LinearLayout linearLayout = managePromptpayViewHolder2.linearRequestMoney;
if (linearLayout == null) {
C14957gcv.a("");
linearLayout = null;
}
linearLayout.setVisibility(up.a ? 0 : 8);
LinearLayout linearLayout2 = managePromptpayViewHolder2.linearRequestMoneyBillPay;
if (linearLayout2 == null) {
C14957gcv.a("");
linearLayout2 = null;
}
linearLayout2.setVisibility(up.c ? 0 : 8);
c14866gag = C14866gag.c;
} else {
c14866gag = null;
}
if (c14866gag == null) {
RelativeLayout relativeLayout2 = managePromptpayViewHolder2.rlAccount;
if (relativeLayout2 == null) {
C14957gcv.a("");
relativeLayout2 = null;
}
relativeLayout2.setVisibility(8);
}
managePromptpayViewHolder2.itemView.setOnClickListener(new View.OnClickListener(managePromptpayViewHolder2, up) { // from class: o.eye
private UP b;
private ManagePromptpayProxyAdapter.ManagePromptpayViewHolder d;
@Override // android.view.View.OnClickListener
public final void onClick(View view2) {
ManagePromptpayProxyAdapter.ManagePromptpayViewHolder.d(this.d, this.b);
}
{
this.d = managePromptpayViewHolder2;
this.b = up;
}
});
if (up.d) {
View view2 = managePromptpayViewHolder2.vwSeparator;
if (view2 != null) {
view = view2;
} else {
C14957gcv.a("");
}
view.setVisibility(8);
return;
}
View view3 = managePromptpayViewHolder2.vwSeparator;
if (view3 != null) {
view = view3;
} else {
C14957gcv.a("");
}
view.setVisibility(0);
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ ManagePromptpayViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
C14957gcv.e(viewGroup, "");
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559177, viewGroup, false);
C14957gcv.c(inflate, "");
return new ManagePromptpayViewHolder(inflate, this.d);
}
public ManagePromptpayProxyAdapter(LWm lWm) {
C14957gcv.e(lWm, "");
this.d = lWm;
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
List<UP> list = this.a;
if (list != null) {
return list.size();
}
return 0;
}
/* loaded from: classes5.dex */
public static final class ManagePromptpayViewHolder extends RecyclerView.zJl {
private final LWm d;
@BindView
public ImageView ivIconPromptPay;
@BindView
public LinearLayout linearRequestMoney;
@BindView
public LinearLayout linearRequestMoneyBillPay;
@BindView
public RelativeLayout rlAccount;
@BindView
public TextView tvAccountNo;
@BindView
public TextView tvNickname;
@BindView
public TextView tvPromptPayId;
@BindView
public TextView tvTypeAccount;
@BindView
public View vwSeparator;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public ManagePromptpayViewHolder(View view, LWm lWm) {
super(view);
C14957gcv.e(view, "");
this.d = lWm;
ButterKnife.c(this, view);
}
public static /* synthetic */ void d(ManagePromptpayViewHolder managePromptpayViewHolder, UP up) {
C14957gcv.e(managePromptpayViewHolder, "");
C14957gcv.e(up, "");
LWm lWm = managePromptpayViewHolder.d;
if (lWm != null) {
lWm.d(up);
}
}
}
/* loaded from: classes5.dex */
public static final class HBt {
private HBt() {
}
public /* synthetic */ HBt(byte b) {
this();
}
}
static {
new HBt((byte) 0);
}
}