what-the-bank/sources/com/scb/phone/view/adapter/investment/scbs/LandingAccountsAdapter.java

188 lines
7.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.investment.scbs;
import android.content.Context;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;
import com.scb.phone.R;
import com.scb.phone.view.adapter.investment.scbs.LandingAccountsAdapter;
import o.AbstractC12009eqC;
import o.C0873Qm;
import o.C6583cXR;
import o.nMh;
import o.pyT;
/* loaded from: classes5.dex */
public final class LandingAccountsAdapter extends AbstractC12009eqC<C0873Qm> {
/* loaded from: classes5.dex */
public class AccountViewHolder_ViewBinding implements Unbinder {
private AccountViewHolder b;
public AccountViewHolder_ViewBinding(AccountViewHolder accountViewHolder, View view) {
this.b = accountViewHolder;
accountViewHolder.typeLabelText = (TextView) pyT.e(view, R.id.tv_card_type_text, "field 'typeLabelText'", TextView.class);
accountViewHolder.quantityText = (TextView) pyT.e(view, R.id.tv_quantity_text, "field 'quantityText'", TextView.class);
accountViewHolder.accountText = (TextView) pyT.e(view, R.id.tv_card_account_text, "field 'accountText'", TextView.class);
accountViewHolder.amountText = (TextView) pyT.e(view, R.id.tv_total_amount_text, "field 'amountText'", TextView.class);
accountViewHolder.totalTitleText = (TextView) pyT.e(view, R.id.total_title, "field 'totalTitleText'", TextView.class);
accountViewHolder.cashTitleText = (TextView) pyT.e(view, R.id.cash_title, "field 'cashTitleText'", TextView.class);
accountViewHolder.percentageText = (TextView) pyT.e(view, R.id.tv_total_percentage_text, "field 'percentageText'", TextView.class);
accountViewHolder.cashText = (TextView) pyT.e(view, R.id.tv_cash_value_text, "field 'cashText'", TextView.class);
accountViewHolder.disclaimerText = (TextView) pyT.e(view, R.id.tv_investment_disclaimer, "field 'disclaimerText'", TextView.class);
accountViewHolder.itemColor = pyT.a(view, R.id.vw_item_color_view, "field 'itemColor'");
accountViewHolder.marketArrow = (ImageView) pyT.e(view, R.id.iv_market_value_arrow, "field 'marketArrow'", ImageView.class);
accountViewHolder.cashLayout = pyT.a(view, R.id.vw_investment_cash_layout, "field 'cashLayout'");
accountViewHolder.nextArrow = (ImageView) pyT.e(view, R.id.iv_right_arrow_image, "field 'nextArrow'", ImageView.class);
accountViewHolder.itemButton = pyT.a(view, R.id.cs_account_item_layout, "field 'itemButton'");
}
@Override // butterknife.Unbinder
public final void a() {
AccountViewHolder accountViewHolder = this.b;
if (accountViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.b = null;
accountViewHolder.typeLabelText = null;
accountViewHolder.quantityText = null;
accountViewHolder.accountText = null;
accountViewHolder.amountText = null;
accountViewHolder.totalTitleText = null;
accountViewHolder.cashTitleText = null;
accountViewHolder.percentageText = null;
accountViewHolder.cashText = null;
accountViewHolder.disclaimerText = null;
accountViewHolder.itemColor = null;
accountViewHolder.marketArrow = null;
accountViewHolder.cashLayout = null;
accountViewHolder.nextArrow = null;
accountViewHolder.itemButton = null;
}
}
public LandingAccountsAdapter(Context context, View view, View view2) {
super(context, view, view2);
}
@Override // o.AbstractC12009eqC
public final AbstractC12009eqC<C0873Qm>.Sts any_(ViewGroup viewGroup) {
return new AccountViewHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131560138, viewGroup, false));
}
@Override // o.AbstractC12009eqC
public final void a(AbstractC12009eqC<C0873Qm>.Sts sts, int i) {
final AccountViewHolder accountViewHolder = (AccountViewHolder) sts;
Context context = this.b;
final C0873Qm c0873Qm = (C0873Qm) this.d.get(i);
accountViewHolder.totalTitleText.setText(c0873Qm.l);
accountViewHolder.cashTitleText.setText(c0873Qm.f);
accountViewHolder.typeLabelText.setText(c0873Qm.h);
accountViewHolder.quantityText.setText(c0873Qm.k);
if (c0873Qm.b != null) {
accountViewHolder.accountText.setText(c0873Qm.b);
} else {
accountViewHolder.accountText.setVisibility(8);
int d = C6583cXR.d(13, context);
accountViewHolder.typeLabelText.setPadding(0, 0, 0, d);
accountViewHolder.quantityText.setPadding(0, 0, 0, d);
}
accountViewHolder.amountText.setText(c0873Qm.f8331o);
if (c0873Qm.m != null) {
accountViewHolder.percentageText.setText(c0873Qm.m);
accountViewHolder.percentageText.setTextColor(nMh.getColor(context, c0873Qm.n));
} else {
accountViewHolder.percentageText.setVisibility(8);
}
accountViewHolder.cashText.setText(c0873Qm.a);
accountViewHolder.marketArrow.setImageResource(c0873Qm.c);
accountViewHolder.itemColor.setBackgroundColor(Color.parseColor(c0873Qm.g));
if (c0873Qm.i != null && !c0873Qm.i.isEmpty()) {
accountViewHolder.disclaimerText.setVisibility(0);
accountViewHolder.disclaimerText.setText(c0873Qm.i);
}
if (c0873Qm.a != null) {
accountViewHolder.cashText.setText(c0873Qm.a);
} else {
accountViewHolder.cashLayout.setVisibility(8);
}
accountViewHolder.nextArrow.setVisibility(c0873Qm.j ? 0 : 8);
if (c0873Qm.j) {
accountViewHolder.itemButton.setOnClickListener(new View.OnClickListener(accountViewHolder, c0873Qm) { // from class: o.evO
private C0873Qm a;
private LandingAccountsAdapter.AccountViewHolder d;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
this.d.e.c.b(this.a);
}
{
this.d = accountViewHolder;
this.a = c0873Qm;
}
});
}
}
/* loaded from: classes5.dex */
public class AccountViewHolder extends AbstractC12009eqC.Sts {
@BindView
TextView accountText;
@BindView
TextView amountText;
@BindView
View cashLayout;
@BindView
TextView cashText;
@BindView
TextView cashTitleText;
@BindView
TextView disclaimerText;
private LandingAccountsAdapter e;
@BindView
View itemButton;
@BindView
View itemColor;
@BindView
ImageView marketArrow;
@BindView
ImageView nextArrow;
@BindView
TextView percentageText;
@BindView
TextView quantityText;
@BindView
TextView totalTitleText;
@BindView
TextView typeLabelText;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public AccountViewHolder(LandingAccountsAdapter landingAccountsAdapter, View view) {
super(landingAccountsAdapter, view);
this.e = landingAccountsAdapter;
ButterKnife.c(this, view);
}
}
}