270 lines
7.6 KiB
Java
270 lines
7.6 KiB
Java
|
package o;
|
||
|
|
||
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||
|
import androidx.recyclerview.widget.RecyclerView;
|
||
|
import androidx.viewpager2.widget.ViewPager2;
|
||
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||
|
|
||
|
/* renamed from: o.oTw, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class C16447oTw extends RecyclerView.dAO {
|
||
|
public ViewPager2.IeS a;
|
||
|
public boolean b;
|
||
|
public int c;
|
||
|
public boolean d;
|
||
|
public LWm e;
|
||
|
private boolean f;
|
||
|
private int g;
|
||
|
private final LinearLayoutManager h;
|
||
|
private final RecyclerView i;
|
||
|
private int j;
|
||
|
private int k;
|
||
|
private boolean l;
|
||
|
private final ViewPager2 m;
|
||
|
|
||
|
public C16447oTw(ViewPager2 viewPager2) {
|
||
|
this.m = viewPager2;
|
||
|
RecyclerView recyclerView = viewPager2.f;
|
||
|
this.i = recyclerView;
|
||
|
this.h = (LinearLayoutManager) recyclerView.x;
|
||
|
this.e = new LWm();
|
||
|
d();
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.dAO
|
||
|
public final void onScrollStateChanged(RecyclerView recyclerView, int i) {
|
||
|
int i2 = this.j;
|
||
|
if (!(i2 == 1 && this.c == 1) && i == 1) {
|
||
|
this.d = false;
|
||
|
this.j = 1;
|
||
|
int i3 = this.k;
|
||
|
if (i3 != -1) {
|
||
|
this.g = i3;
|
||
|
this.k = -1;
|
||
|
} else if (this.g == -1) {
|
||
|
this.g = this.h.j();
|
||
|
}
|
||
|
d(1);
|
||
|
return;
|
||
|
}
|
||
|
if ((i2 == 1 || i2 == 4) && i == 2) {
|
||
|
if (this.l) {
|
||
|
d(2);
|
||
|
this.f = true;
|
||
|
return;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
if ((i2 == 1 || i2 == 4) && i == 0) {
|
||
|
a();
|
||
|
if (!this.l) {
|
||
|
if (this.e.c != -1) {
|
||
|
int i4 = this.e.c;
|
||
|
ViewPager2.IeS ieS = this.a;
|
||
|
if (ieS != null) {
|
||
|
ieS.d(i4, BitmapDescriptorFactory.HUE_RED, 0);
|
||
|
}
|
||
|
}
|
||
|
} else if (this.e.d == 0) {
|
||
|
if (this.g != this.e.c) {
|
||
|
int i5 = this.e.c;
|
||
|
ViewPager2.IeS ieS2 = this.a;
|
||
|
if (ieS2 != null) {
|
||
|
ieS2.c(i5);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
d(0);
|
||
|
d();
|
||
|
}
|
||
|
if (this.j == 2 && i == 0 && this.b) {
|
||
|
a();
|
||
|
if (this.e.d == 0) {
|
||
|
if (this.k != this.e.c) {
|
||
|
int i6 = this.e.c == -1 ? 0 : this.e.c;
|
||
|
ViewPager2.IeS ieS3 = this.a;
|
||
|
if (ieS3 != null) {
|
||
|
ieS3.c(i6);
|
||
|
}
|
||
|
}
|
||
|
d(0);
|
||
|
d();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:11:0x0026, code lost:
|
||
|
|
||
|
if ((r6 < 0) == (androidx.core.view.ViewCompat.m(r4.m.g.s) == 1)) goto L15;
|
||
|
*/
|
||
|
/* JADX WARN: Removed duplicated region for block: B:17:0x003e */
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.dAO
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public final void onScrolled(androidx.recyclerview.widget.RecyclerView r5, int r6, int r7) {
|
||
|
/*
|
||
|
r4 = this;
|
||
|
r5 = 1
|
||
|
r4.l = r5
|
||
|
r4.a()
|
||
|
boolean r0 = r4.f
|
||
|
r1 = -1
|
||
|
r2 = 0
|
||
|
if (r0 == 0) goto L46
|
||
|
r4.f = r2
|
||
|
if (r7 > 0) goto L28
|
||
|
if (r7 != 0) goto L34
|
||
|
if (r6 >= 0) goto L16
|
||
|
r6 = r5
|
||
|
goto L17
|
||
|
L16:
|
||
|
r6 = r2
|
||
|
L17:
|
||
|
androidx.viewpager2.widget.ViewPager2 r7 = r4.m
|
||
|
androidx.recyclerview.widget.LinearLayoutManager r7 = r7.g
|
||
|
androidx.recyclerview.widget.RecyclerView r7 = r7.s
|
||
|
int r7 = androidx.core.view.ViewCompat.m(r7)
|
||
|
if (r7 == r5) goto L25
|
||
|
r7 = r2
|
||
|
goto L26
|
||
|
L25:
|
||
|
r7 = r5
|
||
|
L26:
|
||
|
if (r6 != r7) goto L34
|
||
|
L28:
|
||
|
o.oTw$LWm r6 = r4.e
|
||
|
int r6 = r6.d
|
||
|
if (r6 == 0) goto L34
|
||
|
o.oTw$LWm r6 = r4.e
|
||
|
int r6 = r6.c
|
||
|
int r6 = r6 + r5
|
||
|
goto L38
|
||
|
L34:
|
||
|
o.oTw$LWm r6 = r4.e
|
||
|
int r6 = r6.c
|
||
|
L38:
|
||
|
r4.k = r6
|
||
|
int r7 = r4.g
|
||
|
if (r7 == r6) goto L58
|
||
|
androidx.viewpager2.widget.ViewPager2$IeS r7 = r4.a
|
||
|
if (r7 == 0) goto L58
|
||
|
r7.c(r6)
|
||
|
goto L58
|
||
|
L46:
|
||
|
int r6 = r4.j
|
||
|
if (r6 != 0) goto L58
|
||
|
o.oTw$LWm r6 = r4.e
|
||
|
int r6 = r6.c
|
||
|
if (r6 != r1) goto L51
|
||
|
r6 = r2
|
||
|
L51:
|
||
|
androidx.viewpager2.widget.ViewPager2$IeS r7 = r4.a
|
||
|
if (r7 == 0) goto L58
|
||
|
r7.c(r6)
|
||
|
L58:
|
||
|
o.oTw$LWm r6 = r4.e
|
||
|
int r6 = r6.c
|
||
|
if (r6 != r1) goto L60
|
||
|
r6 = r2
|
||
|
goto L64
|
||
|
L60:
|
||
|
o.oTw$LWm r6 = r4.e
|
||
|
int r6 = r6.c
|
||
|
L64:
|
||
|
o.oTw$LWm r7 = r4.e
|
||
|
float r7 = r7.a
|
||
|
o.oTw$LWm r0 = r4.e
|
||
|
int r0 = r0.d
|
||
|
androidx.viewpager2.widget.ViewPager2$IeS r3 = r4.a
|
||
|
if (r3 == 0) goto L73
|
||
|
r3.d(r6, r7, r0)
|
||
|
L73:
|
||
|
o.oTw$LWm r6 = r4.e
|
||
|
int r6 = r6.c
|
||
|
int r7 = r4.k
|
||
|
if (r6 == r7) goto L7d
|
||
|
if (r7 != r1) goto L8d
|
||
|
L7d:
|
||
|
o.oTw$LWm r6 = r4.e
|
||
|
int r6 = r6.d
|
||
|
if (r6 != 0) goto L8d
|
||
|
int r6 = r4.c
|
||
|
if (r6 == r5) goto L8d
|
||
|
r4.d(r2)
|
||
|
r4.d()
|
||
|
L8d:
|
||
|
return
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: o.C16447oTw.onScrolled(androidx.recyclerview.widget.RecyclerView, int, int):void");
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:75:0x012c, code lost:
|
||
|
|
||
|
if (r5[r2 - 1][1] >= (r6 - r4)) goto L25;
|
||
|
*/
|
||
|
/* JADX WARN: Removed duplicated region for block: B:31:0x0143 */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public final void a() {
|
||
|
/*
|
||
|
Method dump skipped, instructions count: 382
|
||
|
To view this dump add '--comments-level debug' option
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: o.C16447oTw.a():void");
|
||
|
}
|
||
|
|
||
|
public final void b(int i, boolean z) {
|
||
|
ViewPager2.IeS ieS;
|
||
|
this.j = z ? 2 : 3;
|
||
|
this.d = false;
|
||
|
boolean z2 = this.k != i;
|
||
|
this.k = i;
|
||
|
d(2);
|
||
|
if (!z2 || (ieS = this.a) == null) {
|
||
|
return;
|
||
|
}
|
||
|
ieS.c(i);
|
||
|
}
|
||
|
|
||
|
private void d(int i) {
|
||
|
if ((this.j == 3 && this.c == 0) || this.c == i) {
|
||
|
return;
|
||
|
}
|
||
|
this.c = i;
|
||
|
ViewPager2.IeS ieS = this.a;
|
||
|
if (ieS != null) {
|
||
|
ieS.b(i);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.oTw$LWm */
|
||
|
/* loaded from: classes.dex */
|
||
|
public static final class LWm {
|
||
|
public float a;
|
||
|
public int c;
|
||
|
int d;
|
||
|
|
||
|
LWm() {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private void d() {
|
||
|
this.j = 0;
|
||
|
this.c = 0;
|
||
|
LWm lWm = this.e;
|
||
|
lWm.c = -1;
|
||
|
lWm.a = BitmapDescriptorFactory.HUE_RED;
|
||
|
lWm.d = 0;
|
||
|
this.g = -1;
|
||
|
this.k = -1;
|
||
|
this.f = false;
|
||
|
this.l = false;
|
||
|
this.d = false;
|
||
|
this.b = false;
|
||
|
}
|
||
|
}
|