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

59 lines
1.5 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import androidx.recyclerview.widget.RecyclerView;
/* loaded from: classes5.dex */
public final class fJF extends RecyclerView.dAO implements InterfaceC10322eAr {
private final gxT a;
private RVV b;
private HBt c;
private int e;
/* loaded from: classes5.dex */
public interface HBt {
void d(int i);
}
/* loaded from: classes5.dex */
public enum RVV {
NOTIFY_ON_SCROLL,
NOTIFY_ON_SCROLL_STATE_IDLE
}
public fJF(gxT gxt, RVV rvv, HBt hBt) {
C14957gcv.e(gxt, "");
C14957gcv.e(rvv, "");
this.a = gxt;
this.b = rvv;
this.c = hBt;
this.e = -1;
}
@Override // androidx.recyclerview.widget.RecyclerView.dAO
public final void onScrolled(RecyclerView recyclerView, int i, int i2) {
C14957gcv.e(recyclerView, "");
if (this.b == RVV.NOTIFY_ON_SCROLL) {
c(recyclerView);
}
}
@Override // androidx.recyclerview.widget.RecyclerView.dAO
public final void onScrollStateChanged(RecyclerView recyclerView, int i) {
C14957gcv.e(recyclerView, "");
if (this.b == RVV.NOTIFY_ON_SCROLL_STATE_IDLE && i == 0) {
c(recyclerView);
}
}
private final void c(RecyclerView recyclerView) {
int a = a(recyclerView, this.a);
if (this.e != a) {
HBt hBt = this.c;
if (hBt != null) {
hBt.d(a);
}
this.e = a;
}
}
}