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

95 lines
2.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.RecyclerView.zJl;
import java.util.ArrayList;
import java.util.List;
/* renamed from: o.exU, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public abstract class AbstractC12398exU<V extends RecyclerView.zJl> extends RecyclerView.Sts<V> {
public List<UV> d;
protected UR d() {
return null;
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public int getItemCount() {
List<UV> list = this.d;
if (list != null) {
return list.size();
}
return 0;
}
public final void e(List<UV> list) {
List<UV> list2 = this.d;
if (list2 != null) {
list2.clear();
} else {
this.d = new ArrayList();
}
this.d.addAll(list);
if (d() != null) {
this.d.add(d());
}
notifyDataSetChanged();
}
public final void c(UU uu) {
boolean z = false;
for (UV uv : this.d) {
if (uv instanceof UU) {
UU uu2 = (UU) uv;
if (uu2.l && !uu2.e.equals(uu.e)) {
uu2.l = false;
z = true;
}
}
}
if (z) {
notifyDataSetChanged();
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public int getItemViewType(int i) {
int i2 = this.d.get(i).s;
if (i2 == 1) {
return 1;
}
switch (i2) {
case 8:
return 9;
case 9:
return 3;
case 10:
return 2;
case 11:
return 6;
case 12:
return 8;
case 13:
return 7;
default:
return 4;
}
}
public AbstractC12398exU(List<UV> list) {
if (list != null) {
this.d = list;
} else {
this.d = new ArrayList();
}
if (d() != null) {
this.d.add(d());
}
}
public final boolean e() {
return d() != null;
}
}