what-the-bank/sources/com/scb/phone/view/adapter/search/SequentialSearchAdapter.java

139 lines
4.5 KiB
Java

package com.scb.phone.view.adapter.search;
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 com.scb.phone.view.adapter.search.SequentialSearchAdapter;
import java.util.List;
import o.AbstractC14961gcz;
import o.C14851gaI;
import o.C14866gag;
import o.C14957gcv;
import o.InterfaceC14894gbR;
import o.pyT;
/* loaded from: classes5.dex */
public final class SequentialSearchAdapter extends RecyclerView.Sts<ItemViewHolder> {
private final HBt a;
public List<String> c;
/* loaded from: classes5.dex */
public interface HBt {
void e(String str);
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(ItemViewHolder itemViewHolder, int i) {
ItemViewHolder itemViewHolder2 = itemViewHolder;
C14957gcv.e(itemViewHolder2, "");
final String str = this.c.get(i);
final IeS ieS = new IeS(this);
C14957gcv.e(str, "");
C14957gcv.e(ieS, "");
TextView textView = itemViewHolder2.textItem;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
textView.setText(str);
itemViewHolder2.itemView.setOnClickListener(new View.OnClickListener(ieS, str) { // from class: o.eyG
private InterfaceC14894gbR a;
private String d;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
SequentialSearchAdapter.ItemViewHolder.c(this.a, this.d);
}
{
this.a = ieS;
this.d = str;
}
});
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ ItemViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
C14957gcv.e(viewGroup, "");
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559224, viewGroup, false);
C14957gcv.c(inflate, "");
return new ItemViewHolder(inflate);
}
public SequentialSearchAdapter(HBt hBt) {
C14957gcv.e(hBt, "");
this.a = hBt;
this.c = C14851gaI.c;
}
/* loaded from: classes5.dex */
public final class ItemViewHolder_ViewBinding implements Unbinder {
private ItemViewHolder b;
public ItemViewHolder_ViewBinding(ItemViewHolder itemViewHolder, View view) {
this.b = itemViewHolder;
itemViewHolder.textItem = (TextView) pyT.e(view, R.id.text_item, "field 'textItem'", TextView.class);
}
@Override // butterknife.Unbinder
public final void a() {
ItemViewHolder itemViewHolder = this.b;
if (itemViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.b = null;
itemViewHolder.textItem = null;
}
}
/* loaded from: classes5.dex */
static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR<String, C14866gag> {
private SequentialSearchAdapter e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(String str) {
String str2 = str;
C14957gcv.e(str2, "");
this.e.a.e(str2);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
IeS(SequentialSearchAdapter sequentialSearchAdapter) {
super(1);
this.e = sequentialSearchAdapter;
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
return this.c.size();
}
/* loaded from: classes5.dex */
public static final class ItemViewHolder extends RecyclerView.zJl {
@BindView
public TextView textItem;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public ItemViewHolder(View view) {
super(view);
C14957gcv.e(view, "");
ButterKnife.c(this, view);
}
public static /* synthetic */ void c(InterfaceC14894gbR interfaceC14894gbR, String str) {
C14957gcv.e(interfaceC14894gbR, "");
C14957gcv.e(str, "");
interfaceC14894gbR.invoke(str);
}
}
}