what-the-bank/sources/com/scb/phone/view/adapter/help/HelpAdapter.java

142 lines
5.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.help;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
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.help.HelpAdapter;
import java.util.List;
import o.InterfaceC12824fIT;
import o.pyT;
/* loaded from: classes5.dex */
public final class HelpAdapter extends RecyclerView.Sts<MoreOptionsHolder> {
private String c;
private List<String> d;
private InterfaceC12824fIT e;
/* loaded from: classes5.dex */
public class MoreOptionsHolder_ViewBinding implements Unbinder {
private MoreOptionsHolder b;
public MoreOptionsHolder_ViewBinding(MoreOptionsHolder moreOptionsHolder, View view) {
this.b = moreOptionsHolder;
moreOptionsHolder.container = (RelativeLayout) pyT.e(view, R.id.more_option_container_relative_layout, "field 'container'", RelativeLayout.class);
moreOptionsHolder.title = (TextView) pyT.e(view, R.id.more_option_title_text_view, "field 'title'", TextView.class);
moreOptionsHolder.appVersion = (TextView) pyT.e(view, R.id.app_version, "field 'appVersion'", TextView.class);
moreOptionsHolder.divider = pyT.a(view, R.id.more_option_divider_view, "field 'divider'");
moreOptionsHolder.fullDivider = pyT.a(view, R.id.more_option_full_divider_view, "field 'fullDivider'");
moreOptionsHolder.icon = (ImageView) pyT.e(view, R.id.more_option_image_view, "field 'icon'", ImageView.class);
}
@Override // butterknife.Unbinder
public final void a() {
MoreOptionsHolder moreOptionsHolder = this.b;
if (moreOptionsHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.b = null;
moreOptionsHolder.container = null;
moreOptionsHolder.title = null;
moreOptionsHolder.appVersion = null;
moreOptionsHolder.divider = null;
moreOptionsHolder.fullDivider = null;
moreOptionsHolder.icon = null;
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(MoreOptionsHolder moreOptionsHolder, final int i) {
MoreOptionsHolder moreOptionsHolder2 = moreOptionsHolder;
moreOptionsHolder2.title.setText(this.d.get(i));
moreOptionsHolder2.icon.setVisibility(8);
moreOptionsHolder2.appVersion.setVisibility(8);
if (i == this.d.size() - 1) {
moreOptionsHolder2.fullDivider.setVisibility(0);
moreOptionsHolder2.divider.setVisibility(8);
} else {
moreOptionsHolder2.fullDivider.setVisibility(8);
moreOptionsHolder2.divider.setVisibility(0);
}
moreOptionsHolder2.container.setOnClickListener(new View.OnClickListener(this, i) { // from class: o.euC
private int a;
private HelpAdapter d;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
HelpAdapter.e(this.d, this.a);
}
{
this.d = this;
this.a = i;
}
});
moreOptionsHolder2.appVersion.setText(this.c);
}
public HelpAdapter(Context context, InterfaceC12824fIT interfaceC12824fIT, List<String> list) {
this.e = interfaceC12824fIT;
this.d = list;
StringBuilder sb = new StringBuilder();
sb.append(context.getString(R.string.app_version, "3.80.2"));
sb.append(" (8335)");
this.c = sb.toString();
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
return this.d.size();
}
/* loaded from: classes5.dex */
class MoreOptionsHolder extends RecyclerView.zJl {
private HelpAdapter a;
@BindView
TextView appVersion;
@BindView
RelativeLayout container;
@BindView
View divider;
@BindView
View fullDivider;
@BindView
ImageView icon;
@BindView
TextView title;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
MoreOptionsHolder(HelpAdapter helpAdapter, View view) {
super(view);
this.a = helpAdapter;
ButterKnife.c(this, view);
}
}
public static /* synthetic */ void e(HelpAdapter helpAdapter, int i) {
InterfaceC12824fIT interfaceC12824fIT = helpAdapter.e;
if (interfaceC12824fIT != null) {
interfaceC12824fIT.a(i);
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ MoreOptionsHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
return new MoreOptionsHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559183, viewGroup, false));
}
}