what-the-bank/sources/com/scb/phone/view/adapter/profilemanagement/LanguageSettingAdapter.java

135 lines
5.2 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.profilemanagement;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.RadioButton;
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.profilemanagement.LanguageSettingAdapter;
import java.util.List;
import o.InterfaceC8970dar;
import o.UL;
import o.gjJ;
import o.pyT;
/* loaded from: classes5.dex */
public final class LanguageSettingAdapter extends RecyclerView.Sts<LanguageSettingHolder> {
private InterfaceC8970dar.LWm a;
private List<UL> c;
private int d = -1;
private String e;
/* loaded from: classes5.dex */
public class LanguageSettingHolder_ViewBinding implements Unbinder {
private LanguageSettingHolder e;
public LanguageSettingHolder_ViewBinding(LanguageSettingHolder languageSettingHolder, View view) {
this.e = languageSettingHolder;
languageSettingHolder.itemContainer = (LinearLayout) pyT.e(view, R.id.item_container, "field 'itemContainer'", LinearLayout.class);
languageSettingHolder.radioButton = (RadioButton) pyT.e(view, R.id.radio_button, "field 'radioButton'", RadioButton.class);
languageSettingHolder.languageTitle = (TextView) pyT.e(view, R.id.language_title, "field 'languageTitle'", TextView.class);
languageSettingHolder.footerDividerView = pyT.a(view, R.id.footer_divider_view, "field 'footerDividerView'");
languageSettingHolder.dividerView = pyT.a(view, R.id.divider_view, "field 'dividerView'");
}
@Override // butterknife.Unbinder
public final void a() {
LanguageSettingHolder languageSettingHolder = this.e;
if (languageSettingHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.e = null;
languageSettingHolder.itemContainer = null;
languageSettingHolder.radioButton = null;
languageSettingHolder.languageTitle = null;
languageSettingHolder.footerDividerView = null;
languageSettingHolder.dividerView = null;
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(LanguageSettingHolder languageSettingHolder, final int i) {
LanguageSettingHolder languageSettingHolder2 = languageSettingHolder;
languageSettingHolder2.radioButton.setOnCheckedChangeListener(null);
languageSettingHolder2.radioButton.setChecked((!gjJ.b((CharSequence) this.e) && this.e.equals(this.c.get(i).b)) || this.d == i);
languageSettingHolder2.languageTitle.setText(this.c.get(i).c);
languageSettingHolder2.itemContainer.setOnClickListener(new View.OnClickListener(this, i) { // from class: o.exX
private LanguageSettingAdapter a;
private int d;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
LanguageSettingAdapter.c(this.a, this.d);
}
{
this.a = this;
this.d = i;
}
});
if (getItemCount() - 1 == i) {
languageSettingHolder2.dividerView.setVisibility(8);
languageSettingHolder2.footerDividerView.setVisibility(0);
} else {
languageSettingHolder2.dividerView.setVisibility(0);
languageSettingHolder2.footerDividerView.setVisibility(8);
}
}
public LanguageSettingAdapter(List<UL> list, String str, InterfaceC8970dar.LWm lWm) {
this.c = list;
this.a = lWm;
this.e = str;
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
return this.c.size();
}
/* loaded from: classes5.dex */
class LanguageSettingHolder extends RecyclerView.zJl {
private LanguageSettingAdapter c;
@BindView
View dividerView;
@BindView
View footerDividerView;
@BindView
LinearLayout itemContainer;
@BindView
TextView languageTitle;
@BindView
RadioButton radioButton;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
LanguageSettingHolder(LanguageSettingAdapter languageSettingAdapter, View view) {
super(view);
this.c = languageSettingAdapter;
ButterKnife.c(this, view);
}
}
public static /* synthetic */ void c(LanguageSettingAdapter languageSettingAdapter, int i) {
languageSettingAdapter.e = "";
languageSettingAdapter.d = i;
languageSettingAdapter.a.d(languageSettingAdapter.c.get(i).b);
languageSettingAdapter.notifyDataSetChanged();
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ LanguageSettingHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
return new LanguageSettingHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559256, viewGroup, false));
}
}