what-the-bank/sources/com/scb/phone/view/adapter/registration/RegistrationManageDeviceAda...

129 lines
4.8 KiB
Java

package com.scb.phone.view.adapter.registration;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
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.registration.RegistrationManageDeviceAdapter;
import java.util.List;
import o.InterfaceC12790fHY;
import o.JC;
import o.pyT;
/* loaded from: classes5.dex */
public final class RegistrationManageDeviceAdapter extends RecyclerView.Sts<DeviceItemViewHolder> {
public final List<JC> c;
private InterfaceC12790fHY.HBt d;
private final boolean e = true;
/* loaded from: classes5.dex */
public class DeviceItemViewHolder_ViewBinding implements Unbinder {
private DeviceItemViewHolder d;
public DeviceItemViewHolder_ViewBinding(DeviceItemViewHolder deviceItemViewHolder, View view) {
this.d = deviceItemViewHolder;
deviceItemViewHolder.title = (TextView) pyT.e(view, R.id.device_settings_title, "field 'title'", TextView.class);
deviceItemViewHolder.date = (TextView) pyT.e(view, R.id.device_settings_date, "field 'date'", TextView.class);
deviceItemViewHolder.delete = (RelativeLayout) pyT.e(view, R.id.device_settings_relative_layout, "field 'delete'", RelativeLayout.class);
}
@Override // butterknife.Unbinder
public final void a() {
DeviceItemViewHolder deviceItemViewHolder = this.d;
if (deviceItemViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.d = null;
deviceItemViewHolder.title = null;
deviceItemViewHolder.date = null;
deviceItemViewHolder.delete = null;
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(DeviceItemViewHolder deviceItemViewHolder, int i) {
final DeviceItemViewHolder deviceItemViewHolder2 = deviceItemViewHolder;
final JC jc = this.c.get(i);
StringBuilder sb = new StringBuilder();
sb.append(jc.d);
sb.append(" ");
sb.append(jc.i);
final String obj = sb.toString();
deviceItemViewHolder2.title.setText(obj);
deviceItemViewHolder2.date.setText(jc.g);
if (deviceItemViewHolder2.e.e) {
deviceItemViewHolder2.delete.setVisibility(8);
} else {
deviceItemViewHolder2.delete.setVisibility(0);
}
deviceItemViewHolder2.delete.setOnClickListener(new View.OnClickListener(deviceItemViewHolder2, jc, obj) { // from class: o.eyp
private JC b;
private String c;
private RegistrationManageDeviceAdapter.DeviceItemViewHolder d;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
RegistrationManageDeviceAdapter.DeviceItemViewHolder.b(this.d, this.b, this.c);
}
{
this.d = deviceItemViewHolder2;
this.b = jc;
this.c = obj;
}
});
}
public RegistrationManageDeviceAdapter(List<JC> list, InterfaceC12790fHY.HBt hBt) {
this.c = list;
this.d = hBt;
}
public RegistrationManageDeviceAdapter(List<JC> list) {
this.c = list;
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
return this.c.size();
}
/* loaded from: classes5.dex */
public class DeviceItemViewHolder extends RecyclerView.zJl {
@BindView
TextView date;
@BindView
RelativeLayout delete;
final RegistrationManageDeviceAdapter e;
@BindView
TextView title;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
DeviceItemViewHolder(RegistrationManageDeviceAdapter registrationManageDeviceAdapter, View view) {
super(view);
this.e = registrationManageDeviceAdapter;
ButterKnife.c(this, view);
}
public static /* synthetic */ void b(DeviceItemViewHolder deviceItemViewHolder, JC jc, String str) {
InterfaceC12790fHY.HBt hBt = deviceItemViewHolder.e.d;
String str2 = jc.f;
hBt.b(jc.a, str, jc.c);
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ DeviceItemViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
return new DeviceItemViewHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559106, viewGroup, false));
}
}