76 lines
2.6 KiB
Java
76 lines
2.6 KiB
Java
|
package o;
|
||
|
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.TextView;
|
||
|
import androidx.recyclerview.widget.RecyclerView;
|
||
|
import com.scb.phone.view.activity.privacymanagement.PrivacyManagementLandingViewHolder;
|
||
|
import java.util.List;
|
||
|
|
||
|
/* renamed from: o.eiY, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class C11607eiY extends RecyclerView.Sts<PrivacyManagementLandingViewHolder> {
|
||
|
private List<UI> a;
|
||
|
private RVV b;
|
||
|
|
||
|
/* renamed from: o.eiY$RVV */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public interface RVV {
|
||
|
void d(int i);
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ void onBindViewHolder(PrivacyManagementLandingViewHolder privacyManagementLandingViewHolder, final int i) {
|
||
|
PrivacyManagementLandingViewHolder privacyManagementLandingViewHolder2 = privacyManagementLandingViewHolder;
|
||
|
C14957gcv.e(privacyManagementLandingViewHolder2, "");
|
||
|
UI ui = this.a.get(i);
|
||
|
C14957gcv.e(ui, "");
|
||
|
TextView textView = privacyManagementLandingViewHolder2.label;
|
||
|
if (textView == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView = null;
|
||
|
}
|
||
|
textView.setText(ui.a);
|
||
|
privacyManagementLandingViewHolder2.itemView.setOnClickListener(new View.OnClickListener(this, i) { // from class: o.eja
|
||
|
private int d;
|
||
|
private C11607eiY e;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view) {
|
||
|
C11607eiY.e(this.e, this.d);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.e = this;
|
||
|
this.d = i;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ PrivacyManagementLandingViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
|
||
|
C14957gcv.e(viewGroup, "");
|
||
|
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(com.scb.phone.R.layout.2131560041, viewGroup, false);
|
||
|
C14957gcv.c(inflate, "");
|
||
|
return new PrivacyManagementLandingViewHolder(inflate);
|
||
|
}
|
||
|
|
||
|
public C11607eiY(List<UI> list, RVV rvv) {
|
||
|
C14957gcv.e(list, "");
|
||
|
C14957gcv.e(rvv, "");
|
||
|
this.a = list;
|
||
|
this.b = rvv;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final int getItemCount() {
|
||
|
return this.a.size();
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void e(C11607eiY c11607eiY, int i) {
|
||
|
C14957gcv.e(c11607eiY, "");
|
||
|
c11607eiY.b.d(i);
|
||
|
}
|
||
|
}
|