what-the-bank/sources/o/C12390exM.java

112 lines
4.0 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import com.scb.phone.view.adapter.profile_management.manage_account_inbound.ManageAccountInboundViewHolder;
import o.HOS;
/* renamed from: o.exM, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12390exM extends Ran<UM, RecyclerView.zJl> {
private final boolean c;
public InterfaceC14894gbR<? super UM, C14866gag> e;
public C12390exM(boolean z) {
super(new HBt());
this.c = z;
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final RecyclerView.zJl onCreateViewHolder(ViewGroup viewGroup, int i) {
C14957gcv.e(viewGroup, "");
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(com.scb.phone.R.layout.2131559986, viewGroup, false);
C14957gcv.c(inflate, "");
return new ManageAccountInboundViewHolder(inflate);
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final void onBindViewHolder(RecyclerView.zJl zjl, int i) {
C14957gcv.e(zjl, "");
if (zjl instanceof ManageAccountInboundViewHolder) {
UM item = getItem(i);
C14957gcv.d(item, "");
final UM um = item;
ManageAccountInboundViewHolder manageAccountInboundViewHolder = (ManageAccountInboundViewHolder) zjl;
final InterfaceC14894gbR<? super UM, C14866gag> interfaceC14894gbR = this.e;
boolean z = this.c;
C14957gcv.e(um, "");
TextView textView = manageAccountInboundViewHolder.tvAccountNo;
CheckBox checkBox = null;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
textView.setText(C6583cXR.b(um.e, z));
TextView textView2 = manageAccountInboundViewHolder.tvAccountType;
if (textView2 == null) {
C14957gcv.a("");
textView2 = null;
}
textView2.setText(um.a);
TextView textView3 = manageAccountInboundViewHolder.tvNickName;
if (textView3 == null) {
C14957gcv.a("");
textView3 = null;
}
textView3.setText(um.d);
CheckBox checkBox2 = manageAccountInboundViewHolder.toggleView;
if (checkBox2 == null) {
C14957gcv.a("");
checkBox2 = null;
}
checkBox2.setChecked(um.b);
CheckBox checkBox3 = manageAccountInboundViewHolder.toggleView;
if (checkBox3 != null) {
checkBox = checkBox3;
} else {
C14957gcv.a("");
}
checkBox.setOnClickListener(new View.OnClickListener(interfaceC14894gbR, um) { // from class: o.exP
private InterfaceC14894gbR a;
private UM b;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
ManageAccountInboundViewHolder.a(this.a, this.b);
}
{
this.a = interfaceC14894gbR;
this.b = um;
}
});
}
}
/* renamed from: o.exM$HBt */
/* loaded from: classes5.dex */
public static final class HBt extends HOS.IeS<UM> {
@Override // o.HOS.IeS
public final /* synthetic */ boolean areContentsTheSame(UM um, UM um2) {
UM um3 = um;
UM um4 = um2;
C14957gcv.e(um3, "");
C14957gcv.e(um4, "");
return C14957gcv.b(um3, um4);
}
@Override // o.HOS.IeS
public final /* synthetic */ boolean areItemsTheSame(UM um, UM um2) {
UM um3 = um;
UM um4 = um2;
C14957gcv.e(um3, "");
C14957gcv.e(um4, "");
return C14957gcv.b((Object) um3.e, (Object) um4.e);
}
}
}