what-the-bank/sources/com/scb/phone/view/adapter/investment/assessment/BasicAssetAllocationAdapter...

106 lines
3.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.investment.assessment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;
import com.scb.phone.R;
import java.util.List;
import o.C14957gcv;
import o.OX;
import o.pyT;
/* loaded from: classes5.dex */
public final class BasicAssetAllocationAdapter extends RecyclerView.Sts<BaaHolder> {
private final List<OX> e;
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(BaaHolder baaHolder, int i) {
BaaHolder baaHolder2 = baaHolder;
C14957gcv.e(baaHolder2, "");
OX ox = this.e.get(i);
C14957gcv.e(ox, "");
TextView textView = baaHolder2.tvTitle;
TextView textView2 = null;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
textView.setText(ox.c);
TextView textView3 = baaHolder2.tvWeight;
if (textView3 != null) {
textView2 = textView3;
} else {
C14957gcv.a("");
}
textView2.setText(ox.d);
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ BaaHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
C14957gcv.e(viewGroup, "");
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559066, viewGroup, false);
C14957gcv.c(inflate, "");
return new BaaHolder(inflate);
}
public BasicAssetAllocationAdapter(List<OX> list) {
C14957gcv.e(list, "");
this.e = list;
setHasStableIds(true);
}
/* loaded from: classes5.dex */
public final class BaaHolder_ViewBinding implements Unbinder {
private BaaHolder c;
public BaaHolder_ViewBinding(BaaHolder baaHolder, View view) {
this.c = baaHolder;
baaHolder.tvTitle = (TextView) pyT.e(view, R.id.tv_asset_plan, "field 'tvTitle'", TextView.class);
baaHolder.tvWeight = (TextView) pyT.e(view, R.id.tv_asset_weight, "field 'tvWeight'", TextView.class);
}
@Override // butterknife.Unbinder
public final void a() {
BaaHolder baaHolder = this.c;
if (baaHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.c = null;
baaHolder.tvTitle = null;
baaHolder.tvWeight = null;
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
return this.e.size();
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final long getItemId(int i) {
return this.e.get(i).hashCode();
}
/* loaded from: classes5.dex */
public static final class BaaHolder extends RecyclerView.zJl {
@BindView
public TextView tvTitle;
@BindView
public TextView tvWeight;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public BaaHolder(View view) {
super(view);
C14957gcv.e(view, "");
ButterKnife.c(this, view);
}
}
}