package com.scb.phone.view.adapter.devicesettings; 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.devicesettings.DeviceSettingsAdapter; import java.util.List; import o.AbstractC5347brN; import o.InterfaceC12790fHY; import o.JC; import o.pvT; import o.pyT; /* loaded from: classes5.dex */ public final class DeviceSettingsAdapter extends pvT { private List a; private InterfaceC12790fHY.HBt b; private final boolean d; @Override // o.Qpt public final long a(int i) { return i; } @Override // o.Qpt public final RecyclerView.zJl anW_(ViewGroup viewGroup, int i) { return null; } @Override // o.Qpt public final int b(int i) { return 0; } @Override // o.Qpt public final void c(RecyclerView.zJl zjl, int i, int i2) { } @Override // o.Qpt public final long d(int i) { return i; } /* loaded from: classes5.dex */ public class ParentViewHolder_ViewBinding implements Unbinder { private ParentViewHolder d; public ParentViewHolder_ViewBinding(ParentViewHolder parentViewHolder, View view) { this.d = parentViewHolder; parentViewHolder.title = (TextView) pyT.e(view, R.id.device_settings_title, "field 'title'", TextView.class); parentViewHolder.date = (TextView) pyT.e(view, R.id.device_settings_date, "field 'date'", TextView.class); parentViewHolder.delete = (RelativeLayout) pyT.e(view, R.id.device_settings_relative_layout, "field 'delete'", RelativeLayout.class); parentViewHolder.divider = pyT.a(view, R.id.device_settings_divider_view, "field 'divider'"); parentViewHolder.fullDivider = pyT.a(view, R.id.device_settings_full_divider_view, "field 'fullDivider'"); } @Override // butterknife.Unbinder public final void a() { ParentViewHolder parentViewHolder = this.d; if (parentViewHolder == null) { throw new IllegalStateException("Bindings already cleared."); } this.d = null; parentViewHolder.title = null; parentViewHolder.date = null; parentViewHolder.delete = null; parentViewHolder.divider = null; parentViewHolder.fullDivider = null; } } public DeviceSettingsAdapter(InterfaceC12790fHY.HBt hBt, List list, boolean z) { this.a = list; this.b = hBt; setHasStableIds(true); this.d = z; } @Override // o.Qpt public final int d() { return this.a.size(); } @Override // o.Qpt public final RecyclerView.zJl anX_(ViewGroup viewGroup, int i) { return new ParentViewHolder(LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559106, viewGroup, false)); } @Override // o.Qpt public final void d(RecyclerView.zJl zjl, int i) { if (zjl instanceof ParentViewHolder) { ParentViewHolder parentViewHolder = (ParentViewHolder) zjl; final JC jc = this.a.get(i); StringBuilder sb = new StringBuilder(); sb.append(jc.d); sb.append(" "); sb.append(jc.i); final String obj = sb.toString(); final boolean z = jc.c; parentViewHolder.title.setText(obj); parentViewHolder.date.setText(jc.g); if ((z && this.d) || !z) { parentViewHolder.delete.setOnClickListener(new View.OnClickListener(this, jc, obj, z) { // from class: o.etc private boolean a; private JC b; private String d; private DeviceSettingsAdapter e; @Override // android.view.View.OnClickListener public final void onClick(View view) { DeviceSettingsAdapter.b(this.e, this.b, this.d, this.a); } { this.e = this; this.b = jc; this.d = obj; this.a = z; } }); } else { parentViewHolder.delete.setVisibility(8); } if (i == this.a.size() - 1) { parentViewHolder.divider.setVisibility(8); parentViewHolder.fullDivider.setVisibility(0); } else { parentViewHolder.divider.setVisibility(0); parentViewHolder.fullDivider.setVisibility(8); } } } @Override // o.Qpt public final boolean b(RecyclerView.zJl zjl) { return zjl instanceof ParentViewHolder; } /* loaded from: classes5.dex */ public static class ParentViewHolder extends AbstractC5347brN { @BindView TextView date; @BindView RelativeLayout delete; @BindView View divider; @BindView View fullDivider; @BindView TextView title; public ParentViewHolder(View view) { super(view); ButterKnife.c(this, view); } } public static /* synthetic */ void b(DeviceSettingsAdapter deviceSettingsAdapter, JC jc, String str, boolean z) { InterfaceC12790fHY.HBt hBt = deviceSettingsAdapter.b; String str2 = jc.f; hBt.b(jc.a, str, z); } }