83 lines
2.5 KiB
Java
83 lines
2.5 KiB
Java
|
package o;
|
||
|
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import androidx.recyclerview.widget.RecyclerView;
|
||
|
import com.scb.phone.view.custom.CustomCheckboxView;
|
||
|
import java.util.List;
|
||
|
import o.C12015eqI;
|
||
|
|
||
|
/* renamed from: o.eqI, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class C12015eqI extends RecyclerView.Sts<Sts> {
|
||
|
public List<IO> a;
|
||
|
public IeS b;
|
||
|
|
||
|
/* renamed from: o.eqI$IeS */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public interface IeS {
|
||
|
void a(String str, boolean z);
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ void onBindViewHolder(Sts sts, int i) {
|
||
|
Sts sts2 = sts;
|
||
|
final IO io2 = this.a.get(i);
|
||
|
final IeS ieS = this.b;
|
||
|
sts2.e.setData(io2);
|
||
|
sts2.e.setListener(new CustomCheckboxView.Sts(ieS, io2) { // from class: o.eqL
|
||
|
private C12015eqI.IeS b;
|
||
|
private IO c;
|
||
|
|
||
|
@Override // com.scb.phone.view.custom.CustomCheckboxView.Sts
|
||
|
public final void b(boolean z) {
|
||
|
C12015eqI.Sts.d(this.b, this.c, z);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = ieS;
|
||
|
this.c = io2;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
public C12015eqI(List<IO> list) {
|
||
|
this.a = list;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final int getItemCount() {
|
||
|
return this.a.size();
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.eqI$Sts */
|
||
|
/* loaded from: classes5.dex */
|
||
|
static class Sts extends RecyclerView.zJl {
|
||
|
CustomCheckboxView e;
|
||
|
|
||
|
Sts(View view) {
|
||
|
super(view);
|
||
|
this.e = (CustomCheckboxView) view;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static /* synthetic */ void d(IeS ieS, IO io2, boolean z) {
|
||
|
if (ieS != null) {
|
||
|
ieS.a(io2.b, z);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void b(C12015eqI c12015eqI, boolean z, IO io2) {
|
||
|
io2.a = z;
|
||
|
c12015eqI.notifyItemChanged(c12015eqI.a.indexOf(io2));
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ Sts onCreateViewHolder(ViewGroup viewGroup, int i) {
|
||
|
CustomCheckboxView customCheckboxView = new CustomCheckboxView(viewGroup.getContext());
|
||
|
customCheckboxView.setLayoutParams(new ViewGroup.LayoutParams(-1, -2));
|
||
|
return new Sts(customCheckboxView);
|
||
|
}
|
||
|
}
|