what-the-bank/sources/o/C12442eyL.java

99 lines
3.3 KiB
Java

package o;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import com.scb.phone.view.adapter.singleform.viewholder.SingleFormRiskLevelViewHolder;
import java.util.List;
/* renamed from: o.eyL, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12442eyL extends RecyclerView.Sts<SingleFormRiskLevelViewHolder> {
private final fIW<Integer> a;
private List<C0822Pf> c;
private int d;
private final fIW<String> e;
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(SingleFormRiskLevelViewHolder singleFormRiskLevelViewHolder, int i) {
final SingleFormRiskLevelViewHolder singleFormRiskLevelViewHolder2 = singleFormRiskLevelViewHolder;
C14957gcv.e(singleFormRiskLevelViewHolder2, "");
C0822Pf c0822Pf = this.c.get(i);
boolean z = i == this.d;
final fIW<Integer> fiw = this.a;
C14957gcv.e(c0822Pf, "");
C14957gcv.e(fiw, "");
TextView textView = singleFormRiskLevelViewHolder2.tvIcon;
TextView textView2 = null;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
textView.setText(c0822Pf.e);
TextView textView3 = singleFormRiskLevelViewHolder2.tvLabel;
if (textView3 != null) {
textView2 = textView3;
} else {
C14957gcv.a("");
}
textView2.setText(c0822Pf.c);
View view = singleFormRiskLevelViewHolder2.itemView;
view.setSelected(z);
view.setOnClickListener(new View.OnClickListener(fiw, singleFormRiskLevelViewHolder2) { // from class: o.eyN
private SingleFormRiskLevelViewHolder a;
private fIW c;
@Override // android.view.View.OnClickListener
public final void onClick(View view2) {
SingleFormRiskLevelViewHolder.a(this.c, this.a);
}
{
this.c = fiw;
this.a = singleFormRiskLevelViewHolder2;
}
});
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ SingleFormRiskLevelViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
C14957gcv.e(viewGroup, "");
return new SingleFormRiskLevelViewHolder(viewGroup);
}
public C12442eyL(List<C0822Pf> list, fIW<String> fiw) {
C14957gcv.e(list, "");
C14957gcv.e(fiw, "");
this.c = list;
this.e = fiw;
setHasStableIds(true);
this.d = -1;
this.a = new fIW(this) { // from class: o.eyJ
private C12442eyL e;
@Override // o.fIW
public final void a(Object obj) {
C12442eyL.d(this.e, (Integer) obj);
}
{
this.e = this;
}
};
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
return this.c.size();
}
public static /* synthetic */ void d(C12442eyL c12442eyL, Integer num) {
C14957gcv.e(c12442eyL, "");
C14957gcv.c(num, "");
c12442eyL.d = num.intValue();
c12442eyL.notifyDataSetChanged();
c12442eyL.e.a(c12442eyL.c.get(c12442eyL.d).a);
}
}