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

42 lines
1.1 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;
/* renamed from: o.eqD, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public abstract class AbstractC12010eqD<T, H extends RecyclerView.zJl> extends RecyclerView.Sts<H> {
public final int a;
public ArrayList<T> c;
public AbstractC12010eqD(ArrayList<T> arrayList) {
C14957gcv.e(arrayList, "");
this.c = arrayList;
this.a = 1073741823;
}
public final int b(int i) {
if (this.c.size() == 0) {
return 0;
}
int i2 = this.a;
if (i < i2) {
int size = (i2 - i) % this.c.size();
if (size == 0) {
return 0;
}
return this.c.size() - size;
}
return (i - i2) % this.c.size();
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public int getItemCount() {
if (this.c.size() <= 1) {
return this.c.size();
}
return Integer.MAX_VALUE;
}
}