137 lines
4.6 KiB
Java
137 lines
4.6 KiB
Java
|
package o;
|
||
|
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.LinearLayout;
|
||
|
import android.widget.RelativeLayout;
|
||
|
import android.widget.TextView;
|
||
|
import androidx.recyclerview.widget.RecyclerView;
|
||
|
import java.util.List;
|
||
|
import o.C12319evv;
|
||
|
|
||
|
/* renamed from: o.evv, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class C12319evv extends RecyclerView.Sts<LWm> {
|
||
|
public List<PB> a;
|
||
|
private final InterfaceC12879fJw b;
|
||
|
public List<PD> d;
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ void onBindViewHolder(LWm lWm, final int i) {
|
||
|
LWm lWm2 = lWm;
|
||
|
C14957gcv.e(lWm2, "");
|
||
|
XKf xKf = lWm2.c;
|
||
|
C12319evv c12319evv = lWm2.b;
|
||
|
List<PB> list = c12319evv.a;
|
||
|
if (list != null) {
|
||
|
PB pb = list.get(i);
|
||
|
TextView textView = xKf.h;
|
||
|
C14957gcv.c(textView, "");
|
||
|
TextView textView2 = textView;
|
||
|
C14957gcv.e(textView2, "");
|
||
|
textView2.setVisibility(0);
|
||
|
xKf.h.setText(pb.i);
|
||
|
xKf.j.setText(pb.f8312o);
|
||
|
xKf.e.setText(pb.h);
|
||
|
xKf.b.setText(pb.b);
|
||
|
xKf.d.setText(pb.a);
|
||
|
}
|
||
|
List<PD> list2 = c12319evv.d;
|
||
|
if (list2 != null) {
|
||
|
PD pd = list2.get(i);
|
||
|
TextView textView3 = xKf.h;
|
||
|
C14957gcv.c(textView3, "");
|
||
|
TextView textView4 = textView3;
|
||
|
C14957gcv.e(textView4, "");
|
||
|
textView4.setVisibility(0);
|
||
|
xKf.h.setText(pd.a);
|
||
|
xKf.j.setText(pd.g);
|
||
|
TextView textView5 = xKf.b;
|
||
|
C14957gcv.c(textView5, "");
|
||
|
TextView textView6 = textView5;
|
||
|
C14957gcv.e(textView6, "");
|
||
|
textView6.setVisibility(8);
|
||
|
LinearLayout linearLayout = xKf.a;
|
||
|
C14957gcv.c(linearLayout, "");
|
||
|
LinearLayout linearLayout2 = linearLayout;
|
||
|
C14957gcv.e(linearLayout2, "");
|
||
|
linearLayout2.setVisibility(8);
|
||
|
Double d = pd.i;
|
||
|
if (d != null) {
|
||
|
xKf.f.setText(xKf.g.getContext().getString(com.scb.phone.R.string.switch_in_yield, Double.valueOf(d.doubleValue())));
|
||
|
TextView textView7 = xKf.f;
|
||
|
C14957gcv.c(textView7, "");
|
||
|
TextView textView8 = textView7;
|
||
|
C14957gcv.e(textView8, "");
|
||
|
textView8.setVisibility(0);
|
||
|
}
|
||
|
}
|
||
|
RelativeLayout relativeLayout = lWm2.c.c;
|
||
|
final C12319evv c12319evv2 = lWm2.b;
|
||
|
relativeLayout.setOnClickListener(new View.OnClickListener(c12319evv2, i) { // from class: o.evz
|
||
|
private int b;
|
||
|
private C12319evv d;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view) {
|
||
|
C12319evv.LWm.d(this.d, this.b);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = c12319evv2;
|
||
|
this.b = i;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ LWm onCreateViewHolder(ViewGroup viewGroup, int i) {
|
||
|
C14957gcv.e(viewGroup, "");
|
||
|
XKf QU_ = XKf.QU_(LayoutInflater.from(viewGroup.getContext()), viewGroup);
|
||
|
C14957gcv.c(QU_, "");
|
||
|
return new LWm(this, QU_);
|
||
|
}
|
||
|
|
||
|
public C12319evv(InterfaceC12879fJw interfaceC12879fJw) {
|
||
|
C14957gcv.e(interfaceC12879fJw, "");
|
||
|
this.b = interfaceC12879fJw;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final int getItemCount() {
|
||
|
List list = this.a;
|
||
|
if (list == null && (list = this.d) == null) {
|
||
|
return 0;
|
||
|
}
|
||
|
return list.size();
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.evv$LWm */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class LWm extends RecyclerView.zJl {
|
||
|
final C12319evv b;
|
||
|
final XKf c;
|
||
|
|
||
|
public static /* synthetic */ void d(C12319evv c12319evv, int i) {
|
||
|
C14957gcv.e(c12319evv, "");
|
||
|
List list = c12319evv.a;
|
||
|
if (list != null) {
|
||
|
c12319evv.b.d((PB) list.get(i));
|
||
|
}
|
||
|
List list2 = c12319evv.d;
|
||
|
if (list2 != null) {
|
||
|
c12319evv.b.b((PD) list2.get(i));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
public LWm(C12319evv c12319evv, XKf xKf) {
|
||
|
super(xKf.g);
|
||
|
C14957gcv.e(xKf, "");
|
||
|
this.b = c12319evv;
|
||
|
this.c = xKf;
|
||
|
}
|
||
|
}
|
||
|
}
|