118 lines
3.9 KiB
Java
118 lines
3.9 KiB
Java
|
package com.scb.phone.view.adapter.hml;
|
||
|
|
||
|
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.MU;
|
||
|
import o.pyT;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class HmlAboutAdapter extends RecyclerView.Sts<HmlAboutViewHolder> {
|
||
|
private final List<MU> e;
|
||
|
|
||
|
public HmlAboutAdapter(List<MU> list) {
|
||
|
C14957gcv.e(list, "");
|
||
|
this.e = list;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ void onBindViewHolder(HmlAboutViewHolder hmlAboutViewHolder, int i) {
|
||
|
HmlAboutViewHolder hmlAboutViewHolder2 = hmlAboutViewHolder;
|
||
|
C14957gcv.e(hmlAboutViewHolder2, "");
|
||
|
MU mu = this.e.get(i);
|
||
|
C14957gcv.e(mu, "");
|
||
|
String str = mu.d;
|
||
|
TextView textView = null;
|
||
|
if (str != null) {
|
||
|
TextView textView2 = hmlAboutViewHolder2.title;
|
||
|
if (textView2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView2 = null;
|
||
|
}
|
||
|
textView2.setVisibility(0);
|
||
|
TextView textView3 = hmlAboutViewHolder2.title;
|
||
|
if (textView3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView3 = null;
|
||
|
}
|
||
|
textView3.setText(str);
|
||
|
}
|
||
|
String str2 = mu.b;
|
||
|
if (str2 != null) {
|
||
|
TextView textView4 = hmlAboutViewHolder2.info;
|
||
|
if (textView4 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView4 = null;
|
||
|
}
|
||
|
textView4.setVisibility(0);
|
||
|
TextView textView5 = hmlAboutViewHolder2.info;
|
||
|
if (textView5 != null) {
|
||
|
textView = textView5;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
textView.setText(str2);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ HmlAboutViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
|
||
|
C14957gcv.e(viewGroup, "");
|
||
|
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559148, viewGroup, false);
|
||
|
C14957gcv.c(inflate, "");
|
||
|
return new HmlAboutViewHolder(inflate);
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class HmlAboutViewHolder_ViewBinding implements Unbinder {
|
||
|
private HmlAboutViewHolder e;
|
||
|
|
||
|
public HmlAboutViewHolder_ViewBinding(HmlAboutViewHolder hmlAboutViewHolder, View view) {
|
||
|
this.e = hmlAboutViewHolder;
|
||
|
hmlAboutViewHolder.title = (TextView) pyT.e(view, R.id.tv_title, "field 'title'", TextView.class);
|
||
|
hmlAboutViewHolder.info = (TextView) pyT.e(view, R.id.tv_info, "field 'info'", TextView.class);
|
||
|
}
|
||
|
|
||
|
@Override // butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
HmlAboutViewHolder hmlAboutViewHolder = this.e;
|
||
|
if (hmlAboutViewHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.e = null;
|
||
|
hmlAboutViewHolder.title = null;
|
||
|
hmlAboutViewHolder.info = null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final int getItemCount() {
|
||
|
return this.e.size();
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class HmlAboutViewHolder extends RecyclerView.zJl {
|
||
|
|
||
|
@BindView
|
||
|
public TextView info;
|
||
|
|
||
|
@BindView
|
||
|
public TextView title;
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
public HmlAboutViewHolder(View view) {
|
||
|
super(view);
|
||
|
C14957gcv.e(view, "");
|
||
|
ButterKnife.c(this, view);
|
||
|
}
|
||
|
}
|
||
|
}
|