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 extends RecyclerView.Sts { public List d; protected UR d() { return null; } @Override // androidx.recyclerview.widget.RecyclerView.Sts public int getItemCount() { List list = this.d; if (list != null) { return list.size(); } return 0; } public final void e(List list) { List 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 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; } }