what-the-bank/sources/com/scb/phone/view/adapter/suitabilityassessment/RiskSummaryRecyclerViewAdap...

124 lines
4.5 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.suitabilityassessment;
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.Arrays;
import java.util.List;
import o.C0818Pc;
import o.C0819Pd;
import o.C14957gcv;
import o.OW;
import o.gcH;
import o.pyT;
/* loaded from: classes5.dex */
public final class RiskSummaryRecyclerViewAdapter extends RecyclerView.Sts<RiskSummaryViewHolder> {
private final List<OW> a;
private final C0819Pd d;
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(RiskSummaryViewHolder riskSummaryViewHolder, int i) {
RiskSummaryViewHolder riskSummaryViewHolder2 = riskSummaryViewHolder;
C14957gcv.e(riskSummaryViewHolder2, "");
C0818Pc c0818Pc = this.d.e.get(i);
OW ow = this.a.get(i);
int i2 = c0818Pc.a;
String str = c0818Pc.d;
String str2 = ow.a;
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
TextView textView = riskSummaryViewHolder2.tvQuestionTitle;
TextView textView2 = null;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
String string = textView.getContext().getString(R.string.risk_question_format);
C14957gcv.c((Object) string, "");
TextView textView3 = riskSummaryViewHolder2.tvQuestionTitle;
if (textView3 == null) {
C14957gcv.a("");
textView3 = null;
}
gcH gch = gcH.d;
String format = String.format(string, Arrays.copyOf(new Object[]{Integer.valueOf(i2), str}, 2));
C14957gcv.c((Object) format, "");
textView3.setText(format);
TextView textView4 = riskSummaryViewHolder2.tvQuestionAnswer;
if (textView4 != null) {
textView2 = textView4;
} else {
C14957gcv.a("");
}
textView2.setText(str2);
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ RiskSummaryViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
C14957gcv.e(viewGroup, "");
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559314, viewGroup, false);
C14957gcv.c(inflate, "");
return new RiskSummaryViewHolder(this, inflate);
}
/* loaded from: classes5.dex */
public final class RiskSummaryViewHolder_ViewBinding implements Unbinder {
private RiskSummaryViewHolder b;
public RiskSummaryViewHolder_ViewBinding(RiskSummaryViewHolder riskSummaryViewHolder, View view) {
this.b = riskSummaryViewHolder;
riskSummaryViewHolder.tvQuestionTitle = (TextView) pyT.e(view, R.id.tv_question_title, "field 'tvQuestionTitle'", TextView.class);
riskSummaryViewHolder.tvQuestionAnswer = (TextView) pyT.e(view, R.id.tv_question_answer, "field 'tvQuestionAnswer'", TextView.class);
}
@Override // butterknife.Unbinder
public final void a() {
RiskSummaryViewHolder riskSummaryViewHolder = this.b;
if (riskSummaryViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.b = null;
riskSummaryViewHolder.tvQuestionTitle = null;
riskSummaryViewHolder.tvQuestionAnswer = null;
}
}
public RiskSummaryRecyclerViewAdapter(C0819Pd c0819Pd, List<OW> list) {
C14957gcv.e(c0819Pd, "");
C14957gcv.e(list, "");
this.d = c0819Pd;
this.a = list;
}
/* loaded from: classes5.dex */
public final class RiskSummaryViewHolder extends RecyclerView.zJl {
private RiskSummaryRecyclerViewAdapter b;
@BindView
public TextView tvQuestionAnswer;
@BindView
public TextView tvQuestionTitle;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public RiskSummaryViewHolder(RiskSummaryRecyclerViewAdapter riskSummaryRecyclerViewAdapter, View view) {
super(view);
C14957gcv.e(view, "");
this.b = riskSummaryRecyclerViewAdapter;
ButterKnife.c(this, view);
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
return this.d.e.size();
}
}