6178 lines
200 KiB
Java
6178 lines
200 KiB
Java
package androidx.recyclerview.widget;
|
|
|
|
import android.R;
|
|
import android.animation.LayoutTransition;
|
|
import android.content.Context;
|
|
import android.content.res.Resources;
|
|
import android.content.res.TypedArray;
|
|
import android.database.Observable;
|
|
import android.graphics.Canvas;
|
|
import android.graphics.Matrix;
|
|
import android.graphics.PointF;
|
|
import android.graphics.Rect;
|
|
import android.graphics.RectF;
|
|
import android.graphics.drawable.Drawable;
|
|
import android.graphics.drawable.StateListDrawable;
|
|
import android.os.Bundle;
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import android.os.SystemClock;
|
|
import android.util.AttributeSet;
|
|
import android.util.SparseArray;
|
|
import android.view.MotionEvent;
|
|
import android.view.VelocityTracker;
|
|
import android.view.View;
|
|
import android.view.ViewConfiguration;
|
|
import android.view.ViewGroup;
|
|
import android.view.ViewParent;
|
|
import android.view.accessibility.AccessibilityEvent;
|
|
import android.view.accessibility.AccessibilityManager;
|
|
import android.view.animation.Interpolator;
|
|
import android.widget.EdgeEffect;
|
|
import android.widget.OverScroller;
|
|
import androidx.core.view.ViewCompat;
|
|
import androidx.core.view.accessibility.AccessibilityNodeInfoCompat;
|
|
import com.airbnb.deeplinkdispatch.UrlTreeKt;
|
|
import com.google.android.gms.auth.api.credentials.CredentialsApi;
|
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
|
import java.lang.ref.WeakReference;
|
|
import java.lang.reflect.Constructor;
|
|
import java.lang.reflect.InvocationTargetException;
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
import o.C16515owF;
|
|
import o.Emo;
|
|
import o.FgG;
|
|
import o.InterfaceC10263dzV;
|
|
import o.Jfh;
|
|
import o.KNl;
|
|
import o.Klw;
|
|
import o.Lfp;
|
|
import o.TMC;
|
|
import o.UtV;
|
|
import o.WEM;
|
|
import o.XgG;
|
|
import o.Zfp;
|
|
import o.fRw;
|
|
import o.nxk;
|
|
import o.qtT;
|
|
import o.sQk;
|
|
import o.yZt;
|
|
import o.ynG;
|
|
import org.bouncycastle.asn1.cmp.PKIFailureInfo;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class RecyclerView extends ViewGroup implements ynG, InterfaceC10263dzV {
|
|
public final int A;
|
|
public int B;
|
|
boolean C;
|
|
boolean D;
|
|
public final ArrayList<jNh> E;
|
|
Plv F;
|
|
final List<zJl> G;
|
|
public vUG H;
|
|
boolean I;
|
|
public qtT.LWm J;
|
|
final int[] K;
|
|
final List<mxa> L;
|
|
public final huo M;
|
|
mxa N;
|
|
public int O;
|
|
FgG P;
|
|
final Rect Q;
|
|
public final AcL R;
|
|
public List<dAO> S;
|
|
final Runnable T;
|
|
final Zfp U;
|
|
final SYO V;
|
|
final RectF W;
|
|
private boolean aA;
|
|
private float aB;
|
|
private int aC;
|
|
private final Rect aD;
|
|
private int aE;
|
|
private final int[] aF;
|
|
private EdgeEffect aG;
|
|
private VelocityTracker aJ;
|
|
private final Zfp.RVV aL;
|
|
private EdgeEffect ac;
|
|
private int ad;
|
|
private IeS ae;
|
|
private boolean af;
|
|
private RVV ag;
|
|
private int ah;
|
|
private boolean ai;
|
|
private int aj;
|
|
private jbe.IeS ak;
|
|
private int al;
|
|
private boolean am;
|
|
private boolean an;
|
|
private int ao;
|
|
private int ap;
|
|
private int aq;
|
|
private int ar;
|
|
private final int as;
|
|
private final int[] at;
|
|
private EdgeEffect au;
|
|
private final int[] av;
|
|
private final Heg aw;
|
|
private EdgeEffect ax;
|
|
private float ay;
|
|
private dAO az;
|
|
boolean f;
|
|
public Sts g;
|
|
TMC h;
|
|
final AccessibilityManager i;
|
|
public UtV j;
|
|
public boolean k;
|
|
qtT l;
|
|
public boolean m;
|
|
public Emo n;
|
|
|
|
/* renamed from: o, reason: collision with root package name */
|
|
boolean f6394o;
|
|
public jNh p;
|
|
boolean q;
|
|
boolean r;
|
|
int s;
|
|
public jbe t;
|
|
final ArrayList<ZqN> u;
|
|
boolean v;
|
|
boolean w;
|
|
public tOB x;
|
|
Runnable y;
|
|
public List<NHB> z;
|
|
private static final int[] ab = {R.attr.nestedScrollingEnabled};
|
|
static final boolean b = false;
|
|
static final boolean c = true;
|
|
static final boolean e = true;
|
|
static final boolean a = true;
|
|
private static final Class<?>[] aa = {Context.class, AttributeSet.class, Integer.TYPE, Integer.TYPE};
|
|
static final Interpolator d = new Interpolator() { // from class: androidx.recyclerview.widget.RecyclerView.4
|
|
@Override // android.animation.TimeInterpolator
|
|
public final float getInterpolation(float f) {
|
|
float f2 = f - 1.0f;
|
|
return (f2 * f2 * f2 * f2 * f2) + 1.0f;
|
|
}
|
|
};
|
|
|
|
/* loaded from: classes.dex */
|
|
public interface NHB {
|
|
void a(View view);
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public interface RVV {
|
|
int d();
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static abstract class dAO {
|
|
public void onScrollStateChanged(RecyclerView recyclerView, int i) {
|
|
}
|
|
|
|
public void onScrolled(RecyclerView recyclerView, int i, int i2) {
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static abstract class ehe {
|
|
public abstract View c();
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public interface jNh {
|
|
boolean Ob_(RecyclerView recyclerView, MotionEvent motionEvent);
|
|
|
|
void Oc_(RecyclerView recyclerView, MotionEvent motionEvent);
|
|
|
|
void b(boolean z);
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public interface mxa {
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static abstract class vUG {
|
|
public abstract boolean e(int i, int i2);
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void scrollTo(int i, int i2) {
|
|
}
|
|
|
|
public RecyclerView(Context context) {
|
|
this(context, null);
|
|
}
|
|
|
|
public RecyclerView(Context context, AttributeSet attributeSet) {
|
|
this(context, attributeSet, nxk.IeS.recyclerViewStyle);
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Type inference failed for: r13v1 */
|
|
/* JADX WARN: Type inference failed for: r13v2, types: [boolean] */
|
|
/* JADX WARN: Type inference failed for: r13v3 */
|
|
public RecyclerView(Context context, AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
char c2;
|
|
boolean z;
|
|
ClassLoader classLoader;
|
|
Object[] objArr;
|
|
Constructor constructor;
|
|
this.aw = new Heg(this);
|
|
this.M = new huo(this);
|
|
this.U = new Zfp();
|
|
this.T = new Runnable(this) { // from class: androidx.recyclerview.widget.RecyclerView.2
|
|
final RecyclerView e;
|
|
|
|
{
|
|
this.e = this;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
if (!this.e.f6394o || this.e.isLayoutRequested()) {
|
|
return;
|
|
}
|
|
if (!this.e.q) {
|
|
this.e.requestLayout();
|
|
} else if (this.e.D) {
|
|
this.e.C = true;
|
|
} else {
|
|
this.e.c();
|
|
}
|
|
}
|
|
};
|
|
this.Q = new Rect();
|
|
this.aD = new Rect();
|
|
this.W = new RectF();
|
|
this.L = new ArrayList();
|
|
this.u = new ArrayList<>();
|
|
this.E = new ArrayList<>();
|
|
this.s = 0;
|
|
this.k = false;
|
|
this.af = false;
|
|
this.B = 0;
|
|
this.ah = 0;
|
|
this.ae = new IeS();
|
|
this.t = new WEM();
|
|
this.O = 0;
|
|
this.aC = -1;
|
|
this.aB = Float.MIN_VALUE;
|
|
this.ay = Float.MIN_VALUE;
|
|
this.aA = true;
|
|
this.V = new SYO(this);
|
|
this.J = a ? new qtT.LWm() : null;
|
|
this.R = new AcL();
|
|
this.w = false;
|
|
this.v = false;
|
|
this.ak = new ojQ(this);
|
|
this.I = false;
|
|
this.at = new int[2];
|
|
this.aF = new int[2];
|
|
this.av = new int[2];
|
|
this.K = new int[2];
|
|
this.G = new ArrayList();
|
|
this.y = new Runnable(this) { // from class: androidx.recyclerview.widget.RecyclerView.1
|
|
final RecyclerView a;
|
|
|
|
{
|
|
this.a = this;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
if (this.a.t != null) {
|
|
this.a.t.runPendingAnimations();
|
|
}
|
|
this.a.I = false;
|
|
}
|
|
};
|
|
this.aq = 0;
|
|
this.ao = 0;
|
|
this.aL = new Zfp.RVV(this) { // from class: androidx.recyclerview.widget.RecyclerView.3
|
|
final RecyclerView e;
|
|
|
|
{
|
|
this.e = this;
|
|
}
|
|
|
|
@Override // o.Zfp.RVV
|
|
public final void a(zJl zjl, jbe.Sts sts, jbe.Sts sts2) {
|
|
this.e.M.e(zjl);
|
|
RecyclerView recyclerView = this.e;
|
|
recyclerView.a(zjl);
|
|
zjl.setIsRecyclable(false);
|
|
if (recyclerView.t.animateDisappearance(zjl, sts, sts2) && !recyclerView.I && recyclerView.q) {
|
|
ViewCompat.e(recyclerView, recyclerView.y);
|
|
recyclerView.I = true;
|
|
}
|
|
}
|
|
|
|
@Override // o.Zfp.RVV
|
|
public final void e(zJl zjl, jbe.Sts sts, jbe.Sts sts2) {
|
|
zjl.setIsRecyclable(false);
|
|
if (this.e.k) {
|
|
if (this.e.t.animateChange(zjl, zjl, sts, sts2)) {
|
|
RecyclerView recyclerView = this.e;
|
|
if (recyclerView.I || !recyclerView.q) {
|
|
return;
|
|
}
|
|
ViewCompat.e(recyclerView, recyclerView.y);
|
|
recyclerView.I = true;
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (this.e.t.animatePersistence(zjl, sts, sts2)) {
|
|
RecyclerView recyclerView2 = this.e;
|
|
if (recyclerView2.I || !recyclerView2.q) {
|
|
return;
|
|
}
|
|
ViewCompat.e(recyclerView2, recyclerView2.y);
|
|
recyclerView2.I = true;
|
|
}
|
|
}
|
|
|
|
@Override // o.Zfp.RVV
|
|
public final void d(zJl zjl) {
|
|
tOB tob = this.e.x;
|
|
View view = zjl.itemView;
|
|
huo huoVar = this.e.M;
|
|
tob.k.d(view);
|
|
huoVar.c(view);
|
|
}
|
|
|
|
@Override // o.Zfp.RVV
|
|
public final void d(zJl zjl, jbe.Sts sts, jbe.Sts sts2) {
|
|
RecyclerView recyclerView = this.e;
|
|
zjl.setIsRecyclable(false);
|
|
if (recyclerView.t.animateAppearance(zjl, sts, sts2) && !recyclerView.I && recyclerView.q) {
|
|
ViewCompat.e(recyclerView, recyclerView.y);
|
|
recyclerView.I = true;
|
|
}
|
|
}
|
|
};
|
|
setScrollContainer(true);
|
|
setFocusableInTouchMode(true);
|
|
ViewConfiguration viewConfiguration = ViewConfiguration.get(context);
|
|
this.aE = viewConfiguration.getScaledTouchSlop();
|
|
this.aB = fRw.sQ_(viewConfiguration, context);
|
|
this.ay = fRw.sR_(viewConfiguration, context);
|
|
this.A = viewConfiguration.getScaledMinimumFlingVelocity();
|
|
this.as = viewConfiguration.getScaledMaximumFlingVelocity();
|
|
setWillNotDraw(getOverScrollMode() == 2);
|
|
this.t.setListener(this.ak);
|
|
this.j = new UtV(new UtV.LWm(this) { // from class: androidx.recyclerview.widget.RecyclerView.9
|
|
final RecyclerView e;
|
|
|
|
{
|
|
this.e = this;
|
|
}
|
|
|
|
@Override // o.UtV.LWm
|
|
public final zJl b(int i2) {
|
|
RecyclerView recyclerView = this.e;
|
|
int c3 = recyclerView.n.d.c();
|
|
int i3 = 0;
|
|
zJl zjl = null;
|
|
while (true) {
|
|
if (i3 >= c3) {
|
|
break;
|
|
}
|
|
zJl c4 = RecyclerView.c(recyclerView.n.d.e(i3));
|
|
if (c4 != null && !c4.isRemoved() && c4.mPosition == i2) {
|
|
if (!recyclerView.n.b.contains(c4.itemView)) {
|
|
zjl = c4;
|
|
break;
|
|
}
|
|
zjl = c4;
|
|
}
|
|
i3++;
|
|
}
|
|
if (zjl == null) {
|
|
return null;
|
|
}
|
|
if (this.e.n.b.contains(zjl.itemView)) {
|
|
return null;
|
|
}
|
|
return zjl;
|
|
}
|
|
|
|
@Override // o.UtV.LWm
|
|
public final void e(int i2, int i3) {
|
|
this.e.e(i2, i3, true);
|
|
this.e.w = true;
|
|
this.e.R.b += i3;
|
|
}
|
|
|
|
@Override // o.UtV.LWm
|
|
public final void a(int i2, int i3) {
|
|
this.e.e(i2, i3, false);
|
|
this.e.w = true;
|
|
}
|
|
|
|
@Override // o.UtV.LWm
|
|
public final void d(int i2, int i3, Object obj) {
|
|
int i4;
|
|
RecyclerView recyclerView = this.e;
|
|
int c3 = recyclerView.n.d.c();
|
|
for (int i5 = 0; i5 < c3; i5++) {
|
|
View e2 = recyclerView.n.d.e(i5);
|
|
zJl c4 = RecyclerView.c(e2);
|
|
if (c4 != null && !c4.shouldIgnore() && c4.mPosition >= i2 && c4.mPosition < i2 + i3) {
|
|
c4.addFlags(2);
|
|
c4.addChangePayload(obj);
|
|
((saX) e2.getLayoutParams()).b = true;
|
|
}
|
|
}
|
|
huo huoVar = recyclerView.M;
|
|
for (int size = huoVar.c.size() - 1; size >= 0; size--) {
|
|
zJl zjl = huoVar.c.get(size);
|
|
if (zjl != null && (i4 = zjl.mPosition) >= i2 && i4 < i3 + i2) {
|
|
zjl.addFlags(2);
|
|
huoVar.c(huoVar.c.get(size), true);
|
|
huoVar.c.remove(size);
|
|
}
|
|
}
|
|
this.e.v = true;
|
|
}
|
|
|
|
@Override // o.UtV.LWm
|
|
public final void a(UtV.Sts sts) {
|
|
d(sts);
|
|
}
|
|
|
|
private void d(UtV.Sts sts) {
|
|
int i2 = sts.c;
|
|
if (i2 == 1) {
|
|
this.e.x.d(this.e, sts.a, sts.b);
|
|
return;
|
|
}
|
|
if (i2 == 2) {
|
|
this.e.x.c(this.e, sts.a, sts.b);
|
|
} else if (i2 == 4) {
|
|
this.e.x.a(this.e, sts.a, sts.b, sts.d);
|
|
} else if (i2 == 8) {
|
|
this.e.x.b(this.e, sts.a, sts.b, 1);
|
|
}
|
|
}
|
|
|
|
@Override // o.UtV.LWm
|
|
public final void c(UtV.Sts sts) {
|
|
d(sts);
|
|
}
|
|
|
|
@Override // o.UtV.LWm
|
|
public final void d(int i2, int i3) {
|
|
RecyclerView recyclerView = this.e;
|
|
int c3 = recyclerView.n.d.c();
|
|
for (int i4 = 0; i4 < c3; i4++) {
|
|
zJl c4 = RecyclerView.c(recyclerView.n.d.e(i4));
|
|
if (c4 != null && !c4.shouldIgnore() && c4.mPosition >= i2) {
|
|
c4.offsetPosition(i3, false);
|
|
recyclerView.R.m = true;
|
|
}
|
|
}
|
|
huo huoVar = recyclerView.M;
|
|
int size = huoVar.c.size();
|
|
for (int i5 = 0; i5 < size; i5++) {
|
|
zJl zjl = huoVar.c.get(i5);
|
|
if (zjl != null && zjl.mPosition >= i2) {
|
|
zjl.offsetPosition(i3, false);
|
|
}
|
|
}
|
|
recyclerView.requestLayout();
|
|
this.e.w = true;
|
|
}
|
|
|
|
@Override // o.UtV.LWm
|
|
public final void b(int i2, int i3) {
|
|
int i4;
|
|
int i5;
|
|
int i6;
|
|
int i7;
|
|
int i8;
|
|
RecyclerView recyclerView = this.e;
|
|
int c3 = recyclerView.n.d.c();
|
|
int i9 = -1;
|
|
if (i2 < i3) {
|
|
i5 = i2;
|
|
i4 = i3;
|
|
i6 = -1;
|
|
} else {
|
|
i4 = i2;
|
|
i5 = i3;
|
|
i6 = 1;
|
|
}
|
|
for (int i10 = 0; i10 < c3; i10++) {
|
|
zJl c4 = RecyclerView.c(recyclerView.n.d.e(i10));
|
|
if (c4 != null && c4.mPosition >= i5 && c4.mPosition <= i4) {
|
|
if (c4.mPosition == i2) {
|
|
c4.offsetPosition(i3 - i2, false);
|
|
} else {
|
|
c4.offsetPosition(i6, false);
|
|
}
|
|
recyclerView.R.m = true;
|
|
}
|
|
}
|
|
huo huoVar = recyclerView.M;
|
|
if (i2 < i3) {
|
|
i8 = i2;
|
|
i7 = i3;
|
|
} else {
|
|
i7 = i2;
|
|
i8 = i3;
|
|
i9 = 1;
|
|
}
|
|
int size = huoVar.c.size();
|
|
for (int i11 = 0; i11 < size; i11++) {
|
|
zJl zjl = huoVar.c.get(i11);
|
|
if (zjl != null && zjl.mPosition >= i8 && zjl.mPosition <= i7) {
|
|
if (zjl.mPosition == i2) {
|
|
zjl.offsetPosition(i3 - i2, false);
|
|
} else {
|
|
zjl.offsetPosition(i9, false);
|
|
}
|
|
}
|
|
}
|
|
recyclerView.requestLayout();
|
|
this.e.w = true;
|
|
}
|
|
});
|
|
this.n = new Emo(new Emo.LWm(this) { // from class: androidx.recyclerview.widget.RecyclerView.5
|
|
final RecyclerView c;
|
|
|
|
{
|
|
this.c = this;
|
|
}
|
|
|
|
@Override // o.Emo.LWm
|
|
public final int c() {
|
|
return this.c.getChildCount();
|
|
}
|
|
|
|
@Override // o.Emo.LWm
|
|
public final void b(View view, int i2) {
|
|
this.c.addView(view, i2);
|
|
RecyclerView recyclerView = this.c;
|
|
zJl c3 = RecyclerView.c(view);
|
|
Sts sts = recyclerView.g;
|
|
if (sts != null && c3 != null) {
|
|
sts.onViewAttachedToWindow(c3);
|
|
}
|
|
List<NHB> list = recyclerView.z;
|
|
if (list != null) {
|
|
for (int size = list.size() - 1; size >= 0; size--) {
|
|
recyclerView.z.get(size).a(view);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // o.Emo.LWm
|
|
public final int a(View view) {
|
|
return this.c.indexOfChild(view);
|
|
}
|
|
|
|
@Override // o.Emo.LWm
|
|
public final void c(int i2) {
|
|
View childAt = this.c.getChildAt(i2);
|
|
if (childAt != null) {
|
|
this.c.a(childAt);
|
|
childAt.clearAnimation();
|
|
}
|
|
this.c.removeViewAt(i2);
|
|
}
|
|
|
|
@Override // o.Emo.LWm
|
|
public final View e(int i2) {
|
|
return this.c.getChildAt(i2);
|
|
}
|
|
|
|
@Override // o.Emo.LWm
|
|
public final void e() {
|
|
int childCount = this.c.getChildCount();
|
|
for (int i2 = 0; i2 < childCount; i2++) {
|
|
View childAt = this.c.getChildAt(i2);
|
|
this.c.a(childAt);
|
|
childAt.clearAnimation();
|
|
}
|
|
this.c.removeAllViews();
|
|
}
|
|
|
|
@Override // o.Emo.LWm
|
|
public final zJl c(View view) {
|
|
return RecyclerView.c(view);
|
|
}
|
|
|
|
@Override // o.Emo.LWm
|
|
public final void Ad_(View view, int i2, ViewGroup.LayoutParams layoutParams) {
|
|
zJl c3 = RecyclerView.c(view);
|
|
if (c3 != null) {
|
|
if (!c3.isTmpDetached() && !c3.shouldIgnore()) {
|
|
StringBuilder sb = new StringBuilder("Called attach on a child which is not detached: ");
|
|
sb.append(c3);
|
|
sb.append(this.c.e());
|
|
throw new IllegalArgumentException(sb.toString());
|
|
}
|
|
c3.clearTmpDetachFlag();
|
|
}
|
|
this.c.attachViewToParent(view, i2, layoutParams);
|
|
}
|
|
|
|
@Override // o.Emo.LWm
|
|
public final void b(int i2) {
|
|
zJl c3;
|
|
View childAt = this.c.getChildAt(i2);
|
|
if (childAt != null && (c3 = RecyclerView.c(childAt)) != null) {
|
|
if (c3.isTmpDetached() && !c3.shouldIgnore()) {
|
|
StringBuilder sb = new StringBuilder("called detach on an already detached child ");
|
|
sb.append(c3);
|
|
sb.append(this.c.e());
|
|
throw new IllegalArgumentException(sb.toString());
|
|
}
|
|
c3.addFlags(256);
|
|
}
|
|
this.c.detachViewFromParent(i2);
|
|
}
|
|
|
|
@Override // o.Emo.LWm
|
|
public final void d(View view) {
|
|
zJl c3 = RecyclerView.c(view);
|
|
if (c3 != null) {
|
|
c3.onEnteredHiddenState(this.c);
|
|
}
|
|
}
|
|
|
|
@Override // o.Emo.LWm
|
|
public final void b(View view) {
|
|
zJl c3 = RecyclerView.c(view);
|
|
if (c3 != null) {
|
|
c3.onLeftHiddenState(this.c);
|
|
}
|
|
}
|
|
});
|
|
if (ViewCompat.k(this) == 0) {
|
|
ViewCompat.j(this, 8);
|
|
}
|
|
if (ViewCompat.n(this) == 0) {
|
|
ViewCompat.g(this, 1);
|
|
}
|
|
this.i = (AccessibilityManager) getContext().getSystemService("accessibility");
|
|
setAccessibilityDelegateCompat(new TMC(this));
|
|
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, nxk.HBt.RecyclerView, i, 0);
|
|
ViewCompat.sm_(this, context, nxk.HBt.RecyclerView, attributeSet, obtainStyledAttributes, i, 0);
|
|
String string = obtainStyledAttributes.getString(nxk.HBt.RecyclerView_layoutManager);
|
|
if (obtainStyledAttributes.getInt(nxk.HBt.RecyclerView_android_descendantFocusability, -1) == -1) {
|
|
setDescendantFocusability(262144);
|
|
}
|
|
this.m = obtainStyledAttributes.getBoolean(nxk.HBt.RecyclerView_android_clipToPadding, true);
|
|
boolean z2 = obtainStyledAttributes.getBoolean(nxk.HBt.RecyclerView_fastScrollEnabled, false);
|
|
this.ai = z2;
|
|
if (z2) {
|
|
StateListDrawable stateListDrawable = (StateListDrawable) obtainStyledAttributes.getDrawable(nxk.HBt.RecyclerView_fastScrollVerticalThumbDrawable);
|
|
Drawable drawable = obtainStyledAttributes.getDrawable(nxk.HBt.RecyclerView_fastScrollVerticalTrackDrawable);
|
|
StateListDrawable stateListDrawable2 = (StateListDrawable) obtainStyledAttributes.getDrawable(nxk.HBt.RecyclerView_fastScrollHorizontalThumbDrawable);
|
|
Drawable drawable2 = obtainStyledAttributes.getDrawable(nxk.HBt.RecyclerView_fastScrollHorizontalTrackDrawable);
|
|
if (stateListDrawable == null || drawable == null || stateListDrawable2 == null || drawable2 == null) {
|
|
StringBuilder sb = new StringBuilder("Trying to set fast scroller without both required drawables.");
|
|
sb.append(e());
|
|
throw new IllegalArgumentException(sb.toString());
|
|
}
|
|
Resources resources = getContext().getResources();
|
|
c2 = 2;
|
|
z = 1;
|
|
new Jfh(this, stateListDrawable, drawable, stateListDrawable2, drawable2, resources.getDimensionPixelSize(nxk.RVV.fastscroll_default_thickness), resources.getDimensionPixelSize(nxk.RVV.fastscroll_minimum_range), resources.getDimensionPixelOffset(nxk.RVV.fastscroll_margin));
|
|
} else {
|
|
c2 = 2;
|
|
z = 1;
|
|
}
|
|
obtainStyledAttributes.recycle();
|
|
if (string != null) {
|
|
String trim = string.trim();
|
|
if (!trim.isEmpty()) {
|
|
if (trim.charAt(0) == '.') {
|
|
StringBuilder sb2 = new StringBuilder();
|
|
sb2.append(context.getPackageName());
|
|
sb2.append(trim);
|
|
trim = sb2.toString();
|
|
} else if (!trim.contains(".")) {
|
|
StringBuilder sb3 = new StringBuilder();
|
|
sb3.append(RecyclerView.class.getPackage().getName());
|
|
sb3.append('.');
|
|
sb3.append(trim);
|
|
trim = sb3.toString();
|
|
}
|
|
String str = trim;
|
|
try {
|
|
if (isInEditMode()) {
|
|
classLoader = getClass().getClassLoader();
|
|
} else {
|
|
classLoader = context.getClassLoader();
|
|
}
|
|
Class<? extends U> asSubclass = Class.forName(str, false, classLoader).asSubclass(tOB.class);
|
|
try {
|
|
Constructor constructor2 = asSubclass.getConstructor(aa);
|
|
objArr = new Object[4];
|
|
objArr[0] = context;
|
|
objArr[z] = attributeSet;
|
|
objArr[c2] = Integer.valueOf(i);
|
|
objArr[3] = 0;
|
|
constructor = constructor2;
|
|
} catch (NoSuchMethodException e2) {
|
|
try {
|
|
objArr = null;
|
|
constructor = asSubclass.getConstructor(new Class[0]);
|
|
} catch (NoSuchMethodException e3) {
|
|
e3.initCause(e2);
|
|
StringBuilder sb4 = new StringBuilder();
|
|
sb4.append(attributeSet.getPositionDescription());
|
|
sb4.append(": Error creating LayoutManager ");
|
|
sb4.append(str);
|
|
throw new IllegalStateException(sb4.toString(), e3);
|
|
}
|
|
}
|
|
constructor.setAccessible(z);
|
|
setLayoutManager((tOB) constructor.newInstance(objArr));
|
|
} catch (ClassCastException e4) {
|
|
StringBuilder sb5 = new StringBuilder();
|
|
sb5.append(attributeSet.getPositionDescription());
|
|
sb5.append(": Class is not a LayoutManager ");
|
|
sb5.append(str);
|
|
throw new IllegalStateException(sb5.toString(), e4);
|
|
} catch (ClassNotFoundException e5) {
|
|
StringBuilder sb6 = new StringBuilder();
|
|
sb6.append(attributeSet.getPositionDescription());
|
|
sb6.append(": Unable to find LayoutManager ");
|
|
sb6.append(str);
|
|
throw new IllegalStateException(sb6.toString(), e5);
|
|
} catch (IllegalAccessException e6) {
|
|
StringBuilder sb7 = new StringBuilder();
|
|
sb7.append(attributeSet.getPositionDescription());
|
|
sb7.append(": Cannot access non-public constructor ");
|
|
sb7.append(str);
|
|
throw new IllegalStateException(sb7.toString(), e6);
|
|
} catch (InstantiationException e7) {
|
|
StringBuilder sb8 = new StringBuilder();
|
|
sb8.append(attributeSet.getPositionDescription());
|
|
sb8.append(": Could not instantiate the LayoutManager: ");
|
|
sb8.append(str);
|
|
throw new IllegalStateException(sb8.toString(), e7);
|
|
} catch (InvocationTargetException e8) {
|
|
StringBuilder sb9 = new StringBuilder();
|
|
sb9.append(attributeSet.getPositionDescription());
|
|
sb9.append(": Could not instantiate the LayoutManager: ");
|
|
sb9.append(str);
|
|
throw new IllegalStateException(sb9.toString(), e8);
|
|
}
|
|
}
|
|
}
|
|
int[] iArr = ab;
|
|
TypedArray obtainStyledAttributes2 = context.obtainStyledAttributes(attributeSet, iArr, i, 0);
|
|
ViewCompat.sm_(this, context, iArr, attributeSet, obtainStyledAttributes2, i, 0);
|
|
boolean z3 = obtainStyledAttributes2.getBoolean(0, z);
|
|
obtainStyledAttributes2.recycle();
|
|
setNestedScrollingEnabled(z3);
|
|
}
|
|
|
|
final String e() {
|
|
StringBuilder sb = new StringBuilder(" ");
|
|
sb.append(super.toString());
|
|
sb.append(", adapter:");
|
|
sb.append(this.g);
|
|
sb.append(", layout:");
|
|
sb.append(this.x);
|
|
sb.append(", context:");
|
|
sb.append(getContext());
|
|
return sb.toString();
|
|
}
|
|
|
|
public void setAccessibilityDelegateCompat(TMC tmc) {
|
|
this.h = tmc;
|
|
ViewCompat.e(this, tmc);
|
|
}
|
|
|
|
public void setScrollingTouchSlop(int i) {
|
|
ViewConfiguration viewConfiguration = ViewConfiguration.get(getContext());
|
|
if (i == 0 || i != 1) {
|
|
this.aE = viewConfiguration.getScaledTouchSlop();
|
|
} else {
|
|
this.aE = viewConfiguration.getScaledPagingTouchSlop();
|
|
}
|
|
}
|
|
|
|
public void setAdapter(Sts sts) {
|
|
setLayoutFrozen(false);
|
|
Sts sts2 = this.g;
|
|
if (sts2 != null) {
|
|
sts2.unregisterAdapterDataObserver(this.aw);
|
|
this.g.onDetachedFromRecyclerView(this);
|
|
}
|
|
i();
|
|
UtV utV = this.j;
|
|
utV.a(utV.d);
|
|
utV.a(utV.g);
|
|
utV.e = 0;
|
|
Sts sts3 = this.g;
|
|
this.g = sts;
|
|
if (sts != null) {
|
|
sts.registerAdapterDataObserver(this.aw);
|
|
sts.onAttachedToRecyclerView(this);
|
|
}
|
|
tOB tob = this.x;
|
|
if (tob != null) {
|
|
tob.t();
|
|
}
|
|
huo huoVar = this.M;
|
|
Sts sts4 = this.g;
|
|
huoVar.b.clear();
|
|
huoVar.c();
|
|
if (huoVar.e == null) {
|
|
huoVar.e = new ZnX();
|
|
}
|
|
ZnX znX = huoVar.e;
|
|
if (sts3 != null) {
|
|
znX.b--;
|
|
}
|
|
if (znX.b == 0) {
|
|
for (int i = 0; i < znX.c.size(); i++) {
|
|
znX.c.valueAt(i).b.clear();
|
|
}
|
|
}
|
|
if (sts4 != null) {
|
|
znX.b++;
|
|
}
|
|
this.R.m = true;
|
|
c(false);
|
|
requestLayout();
|
|
}
|
|
|
|
public final void i() {
|
|
jbe jbeVar = this.t;
|
|
if (jbeVar != null) {
|
|
jbeVar.endAnimations();
|
|
}
|
|
tOB tob = this.x;
|
|
if (tob != null) {
|
|
tob.c(this.M);
|
|
this.x.e(this.M);
|
|
}
|
|
huo huoVar = this.M;
|
|
huoVar.b.clear();
|
|
huoVar.c();
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public int getBaseline() {
|
|
if (this.x != null) {
|
|
return tOB.m();
|
|
}
|
|
return super.getBaseline();
|
|
}
|
|
|
|
@Override // android.view.View
|
|
protected Parcelable onSaveInstanceState() {
|
|
Plv plv = new Plv(super.onSaveInstanceState());
|
|
Plv plv2 = this.F;
|
|
if (plv2 == null) {
|
|
tOB tob = this.x;
|
|
if (tob != null) {
|
|
plv.d = tob.HB_();
|
|
} else {
|
|
plv.d = null;
|
|
}
|
|
} else {
|
|
plv.d = plv2.d;
|
|
}
|
|
return plv;
|
|
}
|
|
|
|
@Override // android.view.View
|
|
protected void onRestoreInstanceState(Parcelable parcelable) {
|
|
if (!(parcelable instanceof Plv)) {
|
|
super.onRestoreInstanceState(parcelable);
|
|
return;
|
|
}
|
|
Plv plv = (Plv) parcelable;
|
|
this.F = plv;
|
|
super.onRestoreInstanceState(plv.b);
|
|
requestLayout();
|
|
}
|
|
|
|
@Override // android.view.ViewGroup, android.view.View
|
|
protected void dispatchSaveInstanceState(SparseArray<Parcelable> sparseArray) {
|
|
dispatchFreezeSelfOnly(sparseArray);
|
|
}
|
|
|
|
@Override // android.view.ViewGroup, android.view.View
|
|
protected void dispatchRestoreInstanceState(SparseArray<Parcelable> sparseArray) {
|
|
dispatchThawSelfOnly(sparseArray);
|
|
}
|
|
|
|
final void a(zJl zjl) {
|
|
View view = zjl.itemView;
|
|
boolean z = view.getParent() == this;
|
|
this.M.e(g(view));
|
|
if (zjl.isTmpDetached()) {
|
|
this.n.zG_(view, -1, view.getLayoutParams(), true);
|
|
return;
|
|
}
|
|
if (z) {
|
|
Emo emo = this.n;
|
|
int a2 = emo.d.a(view);
|
|
if (a2 < 0) {
|
|
throw new IllegalArgumentException("view is not a child, cannot hide ".concat(String.valueOf(view)));
|
|
}
|
|
emo.e.c(a2);
|
|
emo.b.add(view);
|
|
emo.d.d(view);
|
|
return;
|
|
}
|
|
this.n.d(view, -1, true);
|
|
}
|
|
|
|
public void setRecycledViewPool(ZnX znX) {
|
|
huo huoVar = this.M;
|
|
if (huoVar.e != null) {
|
|
r1.b--;
|
|
}
|
|
huoVar.e = znX;
|
|
if (znX == null || huoVar.g.g == null) {
|
|
return;
|
|
}
|
|
huoVar.e.b++;
|
|
}
|
|
|
|
public void setItemViewCacheSize(int i) {
|
|
huo huoVar = this.M;
|
|
huoVar.a = i;
|
|
huoVar.b();
|
|
}
|
|
|
|
public final void d(ZqN zqN, int i) {
|
|
tOB tob = this.x;
|
|
if (tob != null) {
|
|
tob.e("Cannot add item decoration during a scroll or layout");
|
|
}
|
|
if (this.u.isEmpty()) {
|
|
setWillNotDraw(false);
|
|
}
|
|
if (i < 0) {
|
|
this.u.add(zqN);
|
|
} else {
|
|
this.u.add(i, zqN);
|
|
}
|
|
u();
|
|
requestLayout();
|
|
}
|
|
|
|
public final void e(ZqN zqN) {
|
|
tOB tob = this.x;
|
|
if (tob != null) {
|
|
tob.e("Cannot remove item decoration during a scroll or layout");
|
|
}
|
|
this.u.remove(zqN);
|
|
if (this.u.isEmpty()) {
|
|
setWillNotDraw(getOverScrollMode() == 2);
|
|
}
|
|
u();
|
|
requestLayout();
|
|
}
|
|
|
|
public void setChildDrawingOrderCallback(RVV rvv) {
|
|
if (rvv == this.ag) {
|
|
return;
|
|
}
|
|
this.ag = rvv;
|
|
setChildrenDrawingOrderEnabled(rvv != null);
|
|
}
|
|
|
|
final void b(int i) {
|
|
if (this.x == null) {
|
|
return;
|
|
}
|
|
if (2 != this.O) {
|
|
this.O = 2;
|
|
c(2);
|
|
}
|
|
this.x.b(i);
|
|
awakenScrollBars();
|
|
}
|
|
|
|
public void e(int i) {
|
|
tOB tob;
|
|
if (this.D || (tob = this.x) == null) {
|
|
return;
|
|
}
|
|
tob.d(this, i);
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void scrollBy(int i, int i2) {
|
|
tOB tob = this.x;
|
|
if (tob == null || this.D) {
|
|
return;
|
|
}
|
|
boolean d2 = tob.d();
|
|
boolean c2 = this.x.c();
|
|
if (d2 || c2) {
|
|
if (!d2) {
|
|
i = 0;
|
|
}
|
|
if (!c2) {
|
|
i2 = 0;
|
|
}
|
|
Ac_(i, i2, null, 0);
|
|
}
|
|
}
|
|
|
|
final void c() {
|
|
if (!this.f6394o || this.k) {
|
|
Lfp.b("RV FullInvalidate");
|
|
k();
|
|
Lfp.c();
|
|
return;
|
|
}
|
|
if (this.j.d.size() > 0) {
|
|
if ((this.j.e & 4) != 0 && (this.j.e & 11) == 0) {
|
|
Lfp.b("RV PartialInvalidate");
|
|
int i = this.s + 1;
|
|
this.s = i;
|
|
int i2 = 0;
|
|
if (i == 1 && !this.D) {
|
|
this.C = false;
|
|
}
|
|
this.B++;
|
|
this.j.d();
|
|
if (!this.C) {
|
|
Emo emo = this.n;
|
|
int c2 = emo.d.c() - emo.b.size();
|
|
while (true) {
|
|
if (i2 >= c2) {
|
|
this.j.b();
|
|
break;
|
|
}
|
|
Emo emo2 = this.n;
|
|
View e2 = emo2.d.e(emo2.a(i2));
|
|
zJl zjl = e2 == null ? null : ((saX) e2.getLayoutParams()).g;
|
|
if (zjl != null && !zjl.shouldIgnore() && zjl.isUpdated()) {
|
|
k();
|
|
break;
|
|
}
|
|
i2++;
|
|
}
|
|
}
|
|
e(true);
|
|
d(true);
|
|
Lfp.c();
|
|
return;
|
|
}
|
|
if (this.j.d.size() > 0) {
|
|
Lfp.b("RV FullInvalidate");
|
|
k();
|
|
Lfp.c();
|
|
}
|
|
}
|
|
}
|
|
|
|
private boolean Ac_(int i, int i2, MotionEvent motionEvent, int i3) {
|
|
int i4;
|
|
int i5;
|
|
int i6;
|
|
int i7;
|
|
c();
|
|
if (this.g != null) {
|
|
int[] iArr = this.K;
|
|
iArr[0] = 0;
|
|
iArr[1] = 0;
|
|
b(i, i2, iArr);
|
|
int[] iArr2 = this.K;
|
|
int i8 = iArr2[0];
|
|
int i9 = iArr2[1];
|
|
i4 = i9;
|
|
i5 = i8;
|
|
i6 = i - i8;
|
|
i7 = i2 - i9;
|
|
} else {
|
|
i4 = 0;
|
|
i5 = 0;
|
|
i6 = 0;
|
|
i7 = 0;
|
|
}
|
|
if (!this.u.isEmpty()) {
|
|
invalidate();
|
|
}
|
|
int[] iArr3 = this.K;
|
|
iArr3[0] = 0;
|
|
iArr3[1] = 0;
|
|
d(i5, i4, i6, i7, this.aF, i3, iArr3);
|
|
int[] iArr4 = this.K;
|
|
boolean z = (iArr4[0] == 0 && iArr4[1] == 0) ? false : true;
|
|
int i10 = this.ar;
|
|
int[] iArr5 = this.aF;
|
|
int i11 = iArr5[0];
|
|
this.ar = i10 - i11;
|
|
int i12 = this.ap;
|
|
int i13 = iArr5[1];
|
|
this.ap = i12 - i13;
|
|
int[] iArr6 = this.av;
|
|
iArr6[0] = iArr6[0] + i11;
|
|
iArr6[1] = iArr6[1] + i13;
|
|
if (getOverScrollMode() != 2) {
|
|
if (motionEvent != null && !Klw.sa_(motionEvent, 8194)) {
|
|
b(motionEvent.getX(), i6 - r1, motionEvent.getY(), i7 - r0);
|
|
}
|
|
d(i, i2);
|
|
}
|
|
if (i5 != 0 || i4 != 0) {
|
|
a(i5, i4);
|
|
}
|
|
if (!awakenScrollBars()) {
|
|
invalidate();
|
|
}
|
|
return (!z && i5 == 0 && i4 == 0) ? false : true;
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public int computeHorizontalScrollOffset() {
|
|
tOB tob = this.x;
|
|
if (tob != null && tob.d()) {
|
|
return this.x.b(this.R);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public int computeHorizontalScrollExtent() {
|
|
tOB tob = this.x;
|
|
if (tob != null && tob.d()) {
|
|
return this.x.f(this.R);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public int computeHorizontalScrollRange() {
|
|
tOB tob = this.x;
|
|
if (tob != null && tob.d()) {
|
|
return this.x.e(this.R);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public int computeVerticalScrollOffset() {
|
|
tOB tob = this.x;
|
|
if (tob != null && tob.c()) {
|
|
return this.x.c(this.R);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public int computeVerticalScrollExtent() {
|
|
tOB tob = this.x;
|
|
if (tob != null && tob.c()) {
|
|
return this.x.j(this.R);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public int computeVerticalScrollRange() {
|
|
tOB tob = this.x;
|
|
if (tob != null && tob.c()) {
|
|
return this.x.a(this.R);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
final void e(boolean z) {
|
|
if (this.s <= 0) {
|
|
this.s = 1;
|
|
}
|
|
if (!z && !this.D) {
|
|
this.C = false;
|
|
}
|
|
if (this.s == 1) {
|
|
if (z && this.C && !this.D && this.x != null && this.g != null) {
|
|
k();
|
|
}
|
|
if (!this.D) {
|
|
this.C = false;
|
|
}
|
|
}
|
|
this.s--;
|
|
}
|
|
|
|
@Override // android.view.ViewGroup
|
|
public final void suppressLayout(boolean z) {
|
|
if (z != this.D) {
|
|
c("Do not suppressLayout in layout or scroll");
|
|
if (!z) {
|
|
this.D = false;
|
|
if (this.C && this.x != null && this.g != null) {
|
|
requestLayout();
|
|
}
|
|
this.C = false;
|
|
return;
|
|
}
|
|
long uptimeMillis = SystemClock.uptimeMillis();
|
|
onTouchEvent(MotionEvent.obtain(uptimeMillis, uptimeMillis, 3, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, 0));
|
|
this.D = true;
|
|
this.am = true;
|
|
if (this.O != 0) {
|
|
this.O = 0;
|
|
a();
|
|
c(0);
|
|
}
|
|
a();
|
|
}
|
|
}
|
|
|
|
@Deprecated
|
|
public void setLayoutFrozen(boolean z) {
|
|
suppressLayout(z);
|
|
}
|
|
|
|
@Override // android.view.ViewGroup
|
|
@Deprecated
|
|
public void setLayoutTransition(LayoutTransition layoutTransition) {
|
|
if (layoutTransition == null) {
|
|
super.setLayoutTransition(null);
|
|
return;
|
|
}
|
|
throw new IllegalArgumentException("Providing a LayoutTransition into RecyclerView is not supported. Please use setItemAnimator() instead for animating changes to the items in this RecyclerView");
|
|
}
|
|
|
|
public final void c(int i, int i2, boolean z) {
|
|
tOB tob = this.x;
|
|
if (tob == null || this.D) {
|
|
return;
|
|
}
|
|
if (!tob.d()) {
|
|
i = 0;
|
|
}
|
|
if (!this.x.c()) {
|
|
i2 = 0;
|
|
}
|
|
if (i == 0 && i2 == 0) {
|
|
return;
|
|
}
|
|
if (z) {
|
|
int i3 = i != 0 ? 1 : 0;
|
|
if (i2 != 0) {
|
|
i3 |= 2;
|
|
}
|
|
if (this.P == null) {
|
|
this.P = new FgG(this);
|
|
}
|
|
this.P.a(i3, 1);
|
|
}
|
|
this.V.Ax_(i, i2, PKIFailureInfo.systemUnavail, null);
|
|
}
|
|
|
|
public final void a() {
|
|
SYO syo = this.V;
|
|
syo.g.removeCallbacks(syo);
|
|
syo.e.abortAnimation();
|
|
tOB tob = this.x;
|
|
if (tob != null) {
|
|
tob.q();
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:11:0x0055 */
|
|
/* JADX WARN: Removed duplicated region for block: B:7:0x003f */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
private void b(float r6, float r7, float r8, float r9) {
|
|
/*
|
|
r5 = this;
|
|
r0 = 0
|
|
int r1 = (r7 > r0 ? 1 : (r7 == r0 ? 0 : -1))
|
|
r2 = 1065353216(0x3f800000, float:1.0)
|
|
if (r1 >= 0) goto L1f
|
|
r5.q()
|
|
android.widget.EdgeEffect r1 = r5.au
|
|
float r3 = -r7
|
|
int r4 = r5.getWidth()
|
|
float r4 = (float) r4
|
|
float r3 = r3 / r4
|
|
int r4 = r5.getHeight()
|
|
float r4 = (float) r4
|
|
float r8 = r8 / r4
|
|
float r8 = r2 - r8
|
|
o.FBj.vk_(r1, r3, r8)
|
|
goto L38
|
|
L1f:
|
|
int r1 = (r7 > r0 ? 1 : (r7 == r0 ? 0 : -1))
|
|
if (r1 <= 0) goto L3a
|
|
r5.r()
|
|
android.widget.EdgeEffect r1 = r5.ax
|
|
int r3 = r5.getWidth()
|
|
float r3 = (float) r3
|
|
float r3 = r7 / r3
|
|
int r4 = r5.getHeight()
|
|
float r4 = (float) r4
|
|
float r8 = r8 / r4
|
|
o.FBj.vk_(r1, r3, r8)
|
|
L38:
|
|
r8 = 1
|
|
goto L3b
|
|
L3a:
|
|
r8 = 0
|
|
L3b:
|
|
int r1 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1))
|
|
if (r1 >= 0) goto L55
|
|
r5.t()
|
|
android.widget.EdgeEffect r7 = r5.aG
|
|
float r8 = -r9
|
|
int r9 = r5.getHeight()
|
|
float r9 = (float) r9
|
|
float r8 = r8 / r9
|
|
int r9 = r5.getWidth()
|
|
float r9 = (float) r9
|
|
float r6 = r6 / r9
|
|
o.FBj.vk_(r7, r8, r6)
|
|
goto L77
|
|
L55:
|
|
int r1 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1))
|
|
if (r1 <= 0) goto L6f
|
|
r5.p()
|
|
android.widget.EdgeEffect r7 = r5.ac
|
|
int r8 = r5.getHeight()
|
|
float r8 = (float) r8
|
|
float r9 = r9 / r8
|
|
int r8 = r5.getWidth()
|
|
float r8 = (float) r8
|
|
float r6 = r6 / r8
|
|
float r2 = r2 - r6
|
|
o.FBj.vk_(r7, r9, r2)
|
|
goto L77
|
|
L6f:
|
|
if (r8 != 0) goto L77
|
|
int r6 = (r7 > r0 ? 1 : (r7 == r0 ? 0 : -1))
|
|
if (r6 != 0) goto L77
|
|
if (r1 == 0) goto L7a
|
|
L77:
|
|
androidx.core.view.ViewCompat.N(r5)
|
|
L7a:
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.RecyclerView.b(float, float, float, float):void");
|
|
}
|
|
|
|
private void l() {
|
|
boolean z;
|
|
EdgeEffect edgeEffect = this.au;
|
|
if (edgeEffect != null) {
|
|
edgeEffect.onRelease();
|
|
z = this.au.isFinished();
|
|
} else {
|
|
z = false;
|
|
}
|
|
EdgeEffect edgeEffect2 = this.aG;
|
|
if (edgeEffect2 != null) {
|
|
edgeEffect2.onRelease();
|
|
z |= this.aG.isFinished();
|
|
}
|
|
EdgeEffect edgeEffect3 = this.ax;
|
|
if (edgeEffect3 != null) {
|
|
edgeEffect3.onRelease();
|
|
z |= this.ax.isFinished();
|
|
}
|
|
EdgeEffect edgeEffect4 = this.ac;
|
|
if (edgeEffect4 != null) {
|
|
edgeEffect4.onRelease();
|
|
z |= this.ac.isFinished();
|
|
}
|
|
if (z) {
|
|
ViewCompat.N(this);
|
|
}
|
|
}
|
|
|
|
final void d(int i, int i2) {
|
|
boolean z;
|
|
EdgeEffect edgeEffect = this.au;
|
|
if (edgeEffect == null || edgeEffect.isFinished() || i <= 0) {
|
|
z = false;
|
|
} else {
|
|
this.au.onRelease();
|
|
z = this.au.isFinished();
|
|
}
|
|
EdgeEffect edgeEffect2 = this.ax;
|
|
if (edgeEffect2 != null && !edgeEffect2.isFinished() && i < 0) {
|
|
this.ax.onRelease();
|
|
z |= this.ax.isFinished();
|
|
}
|
|
EdgeEffect edgeEffect3 = this.aG;
|
|
if (edgeEffect3 != null && !edgeEffect3.isFinished() && i2 > 0) {
|
|
this.aG.onRelease();
|
|
z |= this.aG.isFinished();
|
|
}
|
|
EdgeEffect edgeEffect4 = this.ac;
|
|
if (edgeEffect4 != null && !edgeEffect4.isFinished() && i2 < 0) {
|
|
this.ac.onRelease();
|
|
z |= this.ac.isFinished();
|
|
}
|
|
if (z) {
|
|
ViewCompat.N(this);
|
|
}
|
|
}
|
|
|
|
final void c(int i, int i2) {
|
|
if (i < 0) {
|
|
q();
|
|
if (this.au.isFinished()) {
|
|
this.au.onAbsorb(-i);
|
|
}
|
|
} else if (i > 0) {
|
|
r();
|
|
if (this.ax.isFinished()) {
|
|
this.ax.onAbsorb(i);
|
|
}
|
|
}
|
|
if (i2 < 0) {
|
|
t();
|
|
if (this.aG.isFinished()) {
|
|
this.aG.onAbsorb(-i2);
|
|
}
|
|
} else if (i2 > 0) {
|
|
p();
|
|
if (this.ac.isFinished()) {
|
|
this.ac.onAbsorb(i2);
|
|
}
|
|
}
|
|
if (i == 0 && i2 == 0) {
|
|
return;
|
|
}
|
|
ViewCompat.N(this);
|
|
}
|
|
|
|
private void q() {
|
|
if (this.au != null) {
|
|
return;
|
|
}
|
|
EdgeEffect Ae_ = IeS.Ae_(this);
|
|
this.au = Ae_;
|
|
if (this.m) {
|
|
int measuredHeight = getMeasuredHeight();
|
|
int paddingTop = getPaddingTop();
|
|
Ae_.setSize((measuredHeight - paddingTop) - getPaddingBottom(), (getMeasuredWidth() - getPaddingLeft()) - getPaddingRight());
|
|
return;
|
|
}
|
|
Ae_.setSize(getMeasuredHeight(), getMeasuredWidth());
|
|
}
|
|
|
|
private void r() {
|
|
if (this.ax != null) {
|
|
return;
|
|
}
|
|
EdgeEffect Ae_ = IeS.Ae_(this);
|
|
this.ax = Ae_;
|
|
if (this.m) {
|
|
int measuredHeight = getMeasuredHeight();
|
|
int paddingTop = getPaddingTop();
|
|
Ae_.setSize((measuredHeight - paddingTop) - getPaddingBottom(), (getMeasuredWidth() - getPaddingLeft()) - getPaddingRight());
|
|
return;
|
|
}
|
|
Ae_.setSize(getMeasuredHeight(), getMeasuredWidth());
|
|
}
|
|
|
|
private void t() {
|
|
if (this.aG != null) {
|
|
return;
|
|
}
|
|
EdgeEffect Ae_ = IeS.Ae_(this);
|
|
this.aG = Ae_;
|
|
if (this.m) {
|
|
int measuredWidth = getMeasuredWidth();
|
|
int paddingLeft = getPaddingLeft();
|
|
Ae_.setSize((measuredWidth - paddingLeft) - getPaddingRight(), (getMeasuredHeight() - getPaddingTop()) - getPaddingBottom());
|
|
return;
|
|
}
|
|
Ae_.setSize(getMeasuredWidth(), getMeasuredHeight());
|
|
}
|
|
|
|
private void p() {
|
|
if (this.ac != null) {
|
|
return;
|
|
}
|
|
EdgeEffect Ae_ = IeS.Ae_(this);
|
|
this.ac = Ae_;
|
|
if (this.m) {
|
|
int measuredWidth = getMeasuredWidth();
|
|
int paddingLeft = getPaddingLeft();
|
|
Ae_.setSize((measuredWidth - paddingLeft) - getPaddingRight(), (getMeasuredHeight() - getPaddingTop()) - getPaddingBottom());
|
|
return;
|
|
}
|
|
Ae_.setSize(getMeasuredWidth(), getMeasuredHeight());
|
|
}
|
|
|
|
public void setEdgeEffectFactory(IeS ieS) {
|
|
this.ae = ieS;
|
|
this.ac = null;
|
|
this.aG = null;
|
|
this.ax = null;
|
|
this.au = null;
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:129:0x0069, code lost:
|
|
|
|
if (r0 != false) goto L43;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:32:0x0066, code lost:
|
|
|
|
if (r1.findNextFocus(r13, r14, (androidx.core.view.ViewCompat.m(r13.x.s) == 1) ^ (r15 == 2) ? 66 : 17) == null) goto L43;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:33:0x006b, code lost:
|
|
|
|
c();
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:34:0x0072, code lost:
|
|
|
|
if (b(r14) != null) goto L46;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:35:0x0074, code lost:
|
|
|
|
return null;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:37:0x0075, code lost:
|
|
|
|
r0 = r13.s + 1;
|
|
r13.s = r0;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:38:0x007a, code lost:
|
|
|
|
if (r0 != 1) goto L51;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:40:0x007e, code lost:
|
|
|
|
if (r13.D != false) goto L51;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:41:0x0080, code lost:
|
|
|
|
r13.C = false;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:42:0x0082, code lost:
|
|
|
|
r13.x.a(r14, r15, r13.M, r13.R);
|
|
e(false);
|
|
*/
|
|
/* JADX WARN: Removed duplicated region for block: B:129:0x0069 */
|
|
/* JADX WARN: Removed duplicated region for block: B:21:0x0042 */
|
|
@Override // android.view.ViewGroup, android.view.ViewParent
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public android.view.View focusSearch(android.view.View r14, int r15) {
|
|
/*
|
|
Method dump skipped, instructions count: 495
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.RecyclerView.focusSearch(android.view.View, int):android.view.View");
|
|
}
|
|
|
|
private void c(View view, View view2) {
|
|
View view3 = view2 != null ? view2 : view;
|
|
this.Q.set(0, 0, view3.getWidth(), view3.getHeight());
|
|
ViewGroup.LayoutParams layoutParams = view3.getLayoutParams();
|
|
if (layoutParams instanceof saX) {
|
|
saX sax = (saX) layoutParams;
|
|
if (!sax.b) {
|
|
Rect rect = sax.d;
|
|
this.Q.left -= rect.left;
|
|
this.Q.right += rect.right;
|
|
this.Q.top -= rect.top;
|
|
this.Q.bottom += rect.bottom;
|
|
}
|
|
}
|
|
if (view2 != null) {
|
|
offsetDescendantRectToMyCoords(view2, this.Q);
|
|
offsetRectIntoDescendantCoords(view, this.Q);
|
|
}
|
|
this.x.Iv_(this, view, this.Q, !this.f6394o, view2 == null);
|
|
}
|
|
|
|
@Override // android.view.ViewGroup, android.view.View
|
|
public void addFocusables(ArrayList<View> arrayList, int i, int i2) {
|
|
super.addFocusables(arrayList, i, i2);
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:17:0x004f, code lost:
|
|
|
|
if (r0 < 30.0f) goto L21;
|
|
*/
|
|
@Override // android.view.ViewGroup, android.view.View
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
protected void onAttachedToWindow() {
|
|
/*
|
|
r4 = this;
|
|
super.onAttachedToWindow()
|
|
r0 = 0
|
|
r4.B = r0
|
|
r1 = 1
|
|
r4.q = r1
|
|
boolean r2 = r4.f6394o
|
|
if (r2 == 0) goto L16
|
|
boolean r2 = r4.isLayoutRequested()
|
|
if (r2 == 0) goto L14
|
|
goto L16
|
|
L14:
|
|
r2 = r1
|
|
goto L17
|
|
L16:
|
|
r2 = r0
|
|
L17:
|
|
r4.f6394o = r2
|
|
androidx.recyclerview.widget.RecyclerView$tOB r2 = r4.x
|
|
if (r2 == 0) goto L22
|
|
r2.t = r1
|
|
r2.c(r4)
|
|
L22:
|
|
r4.I = r0
|
|
boolean r0 = androidx.recyclerview.widget.RecyclerView.a
|
|
if (r0 == 0) goto L6a
|
|
java.lang.ThreadLocal<o.qtT> r0 = o.qtT.e
|
|
java.lang.Object r0 = r0.get()
|
|
o.qtT r0 = (o.qtT) r0
|
|
r4.l = r0
|
|
if (r0 != 0) goto L63
|
|
o.qtT r0 = new o.qtT
|
|
r0.<init>()
|
|
r4.l = r0
|
|
android.view.Display r0 = androidx.core.view.ViewCompat.sk_(r4)
|
|
boolean r1 = r4.isInEditMode()
|
|
if (r1 != 0) goto L51
|
|
if (r0 == 0) goto L51
|
|
float r0 = r0.getRefreshRate()
|
|
r1 = 1106247680(0x41f00000, float:30.0)
|
|
int r1 = (r0 > r1 ? 1 : (r0 == r1 ? 0 : -1))
|
|
if (r1 >= 0) goto L53
|
|
L51:
|
|
r0 = 1114636288(0x42700000, float:60.0)
|
|
L53:
|
|
o.qtT r1 = r4.l
|
|
r2 = 1315859240(0x4e6e6b28, float:1.0E9)
|
|
float r2 = r2 / r0
|
|
long r2 = (long) r2
|
|
r1.b = r2
|
|
java.lang.ThreadLocal<o.qtT> r0 = o.qtT.e
|
|
o.qtT r1 = r4.l
|
|
r0.set(r1)
|
|
L63:
|
|
o.qtT r0 = r4.l
|
|
java.util.ArrayList<androidx.recyclerview.widget.RecyclerView> r0 = r0.d
|
|
r0.add(r4)
|
|
L6a:
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.RecyclerView.onAttachedToWindow():void");
|
|
}
|
|
|
|
@Override // android.view.ViewGroup, android.view.View
|
|
public void onDetachedFromWindow() {
|
|
qtT qtt;
|
|
super.onDetachedFromWindow();
|
|
jbe jbeVar = this.t;
|
|
if (jbeVar != null) {
|
|
jbeVar.endAnimations();
|
|
}
|
|
if (this.O != 0) {
|
|
this.O = 0;
|
|
a();
|
|
c(0);
|
|
}
|
|
a();
|
|
this.q = false;
|
|
tOB tob = this.x;
|
|
if (tob != null) {
|
|
huo huoVar = this.M;
|
|
tob.t = false;
|
|
tob.e(this, huoVar);
|
|
}
|
|
this.G.clear();
|
|
removeCallbacks(this.y);
|
|
Zfp.HBt.a();
|
|
if (!a || (qtt = this.l) == null) {
|
|
return;
|
|
}
|
|
qtt.d.remove(this);
|
|
this.l = null;
|
|
}
|
|
|
|
private boolean zX_(MotionEvent motionEvent) {
|
|
int action = motionEvent.getAction();
|
|
int size = this.E.size();
|
|
for (int i = 0; i < size; i++) {
|
|
jNh jnh = this.E.get(i);
|
|
if (jnh.Ob_(this, motionEvent) && action != 3) {
|
|
this.p = jnh;
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:50:0x00af, code lost:
|
|
|
|
if (r0 != false) goto L44;
|
|
*/
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@Override // android.view.ViewGroup
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public boolean onInterceptTouchEvent(android.view.MotionEvent r9) {
|
|
/*
|
|
Method dump skipped, instructions count: 316
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.RecyclerView.onInterceptTouchEvent(android.view.MotionEvent):boolean");
|
|
}
|
|
|
|
@Override // android.view.ViewGroup, android.view.ViewParent
|
|
public void requestDisallowInterceptTouchEvent(boolean z) {
|
|
int size = this.E.size();
|
|
for (int i = 0; i < size; i++) {
|
|
this.E.get(i).b(z);
|
|
}
|
|
super.requestDisallowInterceptTouchEvent(z);
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Removed duplicated region for block: B:102:0x0266 */
|
|
/* JADX WARN: Removed duplicated region for block: B:105:0x026d */
|
|
/* JADX WARN: Removed duplicated region for block: B:50:0x00ca */
|
|
/* JADX WARN: Type inference failed for: r2v11 */
|
|
/* JADX WARN: Type inference failed for: r2v5, types: [boolean] */
|
|
@Override // android.view.View
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public boolean onTouchEvent(android.view.MotionEvent r23) {
|
|
/*
|
|
Method dump skipped, instructions count: 711
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.RecyclerView.onTouchEvent(android.view.MotionEvent):boolean");
|
|
}
|
|
|
|
private void g() {
|
|
VelocityTracker velocityTracker = this.aJ;
|
|
if (velocityTracker != null) {
|
|
velocityTracker.clear();
|
|
}
|
|
if (this.P == null) {
|
|
this.P = new FgG(this);
|
|
}
|
|
this.P.a(0);
|
|
l();
|
|
if (this.O != 0) {
|
|
this.O = 0;
|
|
SYO syo = this.V;
|
|
syo.g.removeCallbacks(syo);
|
|
syo.e.abortAnimation();
|
|
tOB tob = this.x;
|
|
if (tob != null) {
|
|
tob.q();
|
|
}
|
|
c(0);
|
|
}
|
|
}
|
|
|
|
private void zZ_(MotionEvent motionEvent) {
|
|
int actionIndex = motionEvent.getActionIndex();
|
|
if (motionEvent.getPointerId(actionIndex) == this.aC) {
|
|
int i = actionIndex == 0 ? 1 : 0;
|
|
this.aC = motionEvent.getPointerId(i);
|
|
int x = (int) (motionEvent.getX(i) + 0.5f);
|
|
this.ar = x;
|
|
this.aj = x;
|
|
int y = (int) (motionEvent.getY(i) + 0.5f);
|
|
this.ap = y;
|
|
this.al = y;
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:20:0x0066 */
|
|
/* JADX WARN: Removed duplicated region for block: B:24:0x0076 */
|
|
/* JADX WARN: Removed duplicated region for block: B:28:0x008d */
|
|
/* JADX WARN: Removed duplicated region for block: B:31:0x0095 */
|
|
/* JADX WARN: Removed duplicated region for block: B:34:0x00a3 */
|
|
/* JADX WARN: Removed duplicated region for block: B:36:0x00a8 */
|
|
/* JADX WARN: Removed duplicated region for block: B:39:0x00b7 */
|
|
/* JADX WARN: Removed duplicated region for block: B:41:0x00c1 */
|
|
/* JADX WARN: Removed duplicated region for block: B:43:0x00c6 */
|
|
/* JADX WARN: Removed duplicated region for block: B:51:0x00db */
|
|
/* JADX WARN: Removed duplicated region for block: B:53:0x00c8 */
|
|
/* JADX WARN: Removed duplicated region for block: B:54:0x00c3 */
|
|
/* JADX WARN: Removed duplicated region for block: B:55:0x00aa */
|
|
/* JADX WARN: Removed duplicated region for block: B:56:0x00a5 */
|
|
/* JADX WARN: Removed duplicated region for block: B:57:0x0090 */
|
|
@Override // android.view.View
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public boolean onGenericMotionEvent(android.view.MotionEvent r15) {
|
|
/*
|
|
Method dump skipped, instructions count: 232
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.RecyclerView.onGenericMotionEvent(android.view.MotionEvent):boolean");
|
|
}
|
|
|
|
@Override // android.view.View
|
|
protected void onMeasure(int i, int i2) {
|
|
tOB tob = this.x;
|
|
if (tob == null) {
|
|
e(i, i2);
|
|
return;
|
|
}
|
|
boolean z = false;
|
|
if (tob.k_()) {
|
|
int mode = View.MeasureSpec.getMode(i);
|
|
int mode2 = View.MeasureSpec.getMode(i2);
|
|
this.x.s.e(i, i2);
|
|
if (mode == 1073741824 && mode2 == 1073741824) {
|
|
z = true;
|
|
}
|
|
this.an = z;
|
|
if (z || this.g == null) {
|
|
return;
|
|
}
|
|
if (this.R.j == 1) {
|
|
h();
|
|
}
|
|
this.x.d(i, i2);
|
|
this.R.f = true;
|
|
j();
|
|
this.x.a(i, i2);
|
|
if (this.x.m_()) {
|
|
this.x.d(View.MeasureSpec.makeMeasureSpec(getMeasuredWidth(), 1073741824), View.MeasureSpec.makeMeasureSpec(getMeasuredHeight(), 1073741824));
|
|
this.R.f = true;
|
|
j();
|
|
this.x.a(i, i2);
|
|
}
|
|
this.aq = getMeasuredWidth();
|
|
this.ao = getMeasuredHeight();
|
|
return;
|
|
}
|
|
if (!this.r) {
|
|
if (!this.f) {
|
|
if (this.R.f6395o) {
|
|
setMeasuredDimension(getMeasuredWidth(), getMeasuredHeight());
|
|
return;
|
|
}
|
|
} else {
|
|
int i3 = this.s + 1;
|
|
this.s = i3;
|
|
if (i3 == 1 && !this.D) {
|
|
this.C = false;
|
|
}
|
|
this.B++;
|
|
m();
|
|
d(true);
|
|
if (this.R.f6395o) {
|
|
this.R.c = true;
|
|
} else {
|
|
this.j.e();
|
|
this.R.c = false;
|
|
}
|
|
this.f = false;
|
|
e(false);
|
|
}
|
|
Sts sts = this.g;
|
|
if (sts != null) {
|
|
this.R.h = sts.getItemCount();
|
|
} else {
|
|
this.R.h = 0;
|
|
}
|
|
int i4 = this.s + 1;
|
|
this.s = i4;
|
|
if (i4 == 1 && !this.D) {
|
|
this.C = false;
|
|
}
|
|
this.x.s.e(i, i2);
|
|
e(false);
|
|
this.R.c = false;
|
|
return;
|
|
}
|
|
this.x.s.e(i, i2);
|
|
}
|
|
|
|
final void e(int i, int i2) {
|
|
setMeasuredDimension(tOB.a_(i, getPaddingLeft() + getPaddingRight(), ViewCompat.p(this)), tOB.a_(i2, getPaddingTop() + getPaddingBottom(), ViewCompat.o(this)));
|
|
}
|
|
|
|
@Override // android.view.View
|
|
protected void onSizeChanged(int i, int i2, int i3, int i4) {
|
|
super.onSizeChanged(i, i2, i3, i4);
|
|
if (i == i3 && i2 == i4) {
|
|
return;
|
|
}
|
|
this.ac = null;
|
|
this.aG = null;
|
|
this.ax = null;
|
|
this.au = null;
|
|
}
|
|
|
|
public void setItemAnimator(jbe jbeVar) {
|
|
jbe jbeVar2 = this.t;
|
|
if (jbeVar2 != null) {
|
|
jbeVar2.endAnimations();
|
|
this.t.setListener(null);
|
|
}
|
|
this.t = jbeVar;
|
|
if (jbeVar != null) {
|
|
jbeVar.setListener(this.ak);
|
|
}
|
|
}
|
|
|
|
public final void d(boolean z) {
|
|
int i = this.B - 1;
|
|
this.B = i;
|
|
if (i <= 0) {
|
|
this.B = 0;
|
|
if (z) {
|
|
f();
|
|
s();
|
|
}
|
|
}
|
|
}
|
|
|
|
private void f() {
|
|
AccessibilityManager accessibilityManager;
|
|
int i = this.ad;
|
|
this.ad = 0;
|
|
if (i == 0 || (accessibilityManager = this.i) == null) {
|
|
return;
|
|
}
|
|
try {
|
|
if (((Boolean) Class.forName("android.view.accessibility.AccessibilityManager").getMethod("isEnabled", null).invoke(accessibilityManager, null)).booleanValue()) {
|
|
AccessibilityEvent obtain = AccessibilityEvent.obtain();
|
|
obtain.setEventType(2048);
|
|
KNl.tM_(obtain, i);
|
|
sendAccessibilityEventUnchecked(obtain);
|
|
}
|
|
} catch (Throwable th) {
|
|
Throwable cause = th.getCause();
|
|
if (cause == null) {
|
|
throw th;
|
|
}
|
|
throw cause;
|
|
}
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent accessibilityEvent) {
|
|
onPopulateAccessibilityEvent(accessibilityEvent);
|
|
return true;
|
|
}
|
|
|
|
private void m() {
|
|
boolean z = false;
|
|
if (this.k) {
|
|
UtV utV = this.j;
|
|
utV.a(utV.d);
|
|
utV.a(utV.g);
|
|
utV.e = 0;
|
|
if (this.af) {
|
|
this.x.l_();
|
|
}
|
|
}
|
|
if (this.t != null && this.x.n_()) {
|
|
this.j.d();
|
|
} else {
|
|
this.j.e();
|
|
}
|
|
boolean z2 = this.w || this.v;
|
|
this.R.n = this.f6394o && this.t != null && (this.k || z2 || this.x.y) && (!this.k || this.g.hasStableIds());
|
|
AcL acL = this.R;
|
|
if (acL.n && z2 && !this.k && this.t != null && this.x.n_()) {
|
|
z = true;
|
|
}
|
|
acL.f6395o = z;
|
|
}
|
|
|
|
private void k() {
|
|
if (this.g == null || this.x == null) {
|
|
return;
|
|
}
|
|
this.R.f = false;
|
|
boolean z = this.an && !(this.aq == getWidth() && this.ao == getHeight());
|
|
this.aq = 0;
|
|
this.ao = 0;
|
|
this.an = false;
|
|
if (this.R.j == 1) {
|
|
h();
|
|
} else {
|
|
UtV utV = this.j;
|
|
if ((utV.g.isEmpty() || utV.d.isEmpty()) && !z && this.x.w == getWidth() && this.x.l == getHeight()) {
|
|
this.x.d(View.MeasureSpec.makeMeasureSpec(getWidth(), 1073741824), View.MeasureSpec.makeMeasureSpec(getHeight(), 1073741824));
|
|
n();
|
|
}
|
|
}
|
|
this.x.d(View.MeasureSpec.makeMeasureSpec(getWidth(), 1073741824), View.MeasureSpec.makeMeasureSpec(getHeight(), 1073741824));
|
|
j();
|
|
n();
|
|
}
|
|
|
|
private void h() {
|
|
View b2;
|
|
int absoluteAdapterPosition;
|
|
Zfp.HBt hBt;
|
|
this.R.b(1);
|
|
c(this.R);
|
|
this.R.f = false;
|
|
int i = this.s + 1;
|
|
this.s = i;
|
|
if (i == 1 && !this.D) {
|
|
this.C = false;
|
|
}
|
|
Zfp zfp = this.U;
|
|
zfp.d.clear();
|
|
zfp.b.b();
|
|
this.B++;
|
|
m();
|
|
View focusedChild = (this.aA && hasFocus() && this.g != null) ? getFocusedChild() : null;
|
|
zJl g = (focusedChild == null || (b2 = b(focusedChild)) == null) ? null : g(b2);
|
|
if (g != null) {
|
|
this.R.a = this.g.hasStableIds() ? g.getItemId() : -1L;
|
|
AcL acL = this.R;
|
|
if (this.k) {
|
|
absoluteAdapterPosition = -1;
|
|
} else {
|
|
absoluteAdapterPosition = g.isRemoved() ? g.mOldPosition : g.getAbsoluteAdapterPosition();
|
|
}
|
|
acL.d = absoluteAdapterPosition;
|
|
AcL acL2 = this.R;
|
|
View view = g.itemView;
|
|
int id = view.getId();
|
|
while (!view.isFocused() && (view instanceof ViewGroup) && view.hasFocus()) {
|
|
view = ((ViewGroup) view).getFocusedChild();
|
|
if (view.getId() != -1) {
|
|
id = view.getId();
|
|
}
|
|
}
|
|
acL2.e = id;
|
|
} else {
|
|
this.R.a = -1L;
|
|
this.R.d = -1;
|
|
this.R.e = -1;
|
|
}
|
|
AcL acL3 = this.R;
|
|
acL3.t = acL3.n && this.v;
|
|
this.v = false;
|
|
this.w = false;
|
|
AcL acL4 = this.R;
|
|
acL4.c = acL4.f6395o;
|
|
this.R.h = this.g.getItemCount();
|
|
e(this.at);
|
|
if (this.R.n) {
|
|
Emo emo = this.n;
|
|
int c2 = emo.d.c() - emo.b.size();
|
|
for (int i2 = 0; i2 < c2; i2++) {
|
|
Emo emo2 = this.n;
|
|
View e2 = emo2.d.e(emo2.a(i2));
|
|
zJl zjl = e2 == null ? null : ((saX) e2.getLayoutParams()).g;
|
|
if (!zjl.shouldIgnore() && (!zjl.isInvalid() || this.g.hasStableIds())) {
|
|
this.U.c(zjl, this.t.recordPreLayoutInformation(this.R, zjl, jbe.buildAdapterChangeFlagsForAnimations(zjl), zjl.getUnmodifiedPayloads()));
|
|
if (this.R.t && zjl.isUpdated() && !zjl.isRemoved() && !zjl.shouldIgnore() && !zjl.isInvalid()) {
|
|
this.U.b.c(this.g.hasStableIds() ? zjl.getItemId() : zjl.mPosition, zjl);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (!this.R.f6395o) {
|
|
o();
|
|
} else {
|
|
int c3 = this.n.d.c();
|
|
for (int i3 = 0; i3 < c3; i3++) {
|
|
View e3 = this.n.d.e(i3);
|
|
zJl zjl2 = e3 == null ? null : ((saX) e3.getLayoutParams()).g;
|
|
if (!zjl2.shouldIgnore()) {
|
|
zjl2.saveOldPosition();
|
|
}
|
|
}
|
|
boolean z = this.R.m;
|
|
this.R.m = false;
|
|
this.x.e(this.M, this.R);
|
|
this.R.m = z;
|
|
int i4 = 0;
|
|
while (true) {
|
|
Emo emo3 = this.n;
|
|
if (i4 >= emo3.d.c() - emo3.b.size()) {
|
|
break;
|
|
}
|
|
Emo emo4 = this.n;
|
|
View e4 = emo4.d.e(emo4.a(i4));
|
|
zJl zjl3 = e4 == null ? null : ((saX) e4.getLayoutParams()).g;
|
|
if (!zjl3.shouldIgnore() && ((hBt = this.U.d.get(zjl3)) == null || (hBt.d & 4) == 0)) {
|
|
int buildAdapterChangeFlagsForAnimations = jbe.buildAdapterChangeFlagsForAnimations(zjl3);
|
|
boolean hasAnyOfTheFlags = zjl3.hasAnyOfTheFlags(8192);
|
|
if (!hasAnyOfTheFlags) {
|
|
buildAdapterChangeFlagsForAnimations |= 4096;
|
|
}
|
|
jbe.Sts recordPreLayoutInformation = this.t.recordPreLayoutInformation(this.R, zjl3, buildAdapterChangeFlagsForAnimations, zjl3.getUnmodifiedPayloads());
|
|
if (hasAnyOfTheFlags) {
|
|
a(zjl3, recordPreLayoutInformation);
|
|
} else {
|
|
Zfp zfp2 = this.U;
|
|
Zfp.HBt hBt2 = zfp2.d.get(zjl3);
|
|
if (hBt2 == null) {
|
|
hBt2 = Zfp.HBt.b();
|
|
zfp2.d.put(zjl3, hBt2);
|
|
}
|
|
hBt2.d |= 2;
|
|
hBt2.a = recordPreLayoutInformation;
|
|
}
|
|
}
|
|
i4++;
|
|
}
|
|
o();
|
|
}
|
|
d(true);
|
|
e(false);
|
|
this.R.j = 2;
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:141:0x029a, code lost:
|
|
|
|
if (r15.n.b.contains(getFocusedChild()) != false) goto L122;
|
|
*/
|
|
/* JADX WARN: Removed duplicated region for block: B:155:0x032d */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
private void n() {
|
|
/*
|
|
Method dump skipped, instructions count: 855
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.RecyclerView.n():void");
|
|
}
|
|
|
|
final void a(zJl zjl, jbe.Sts sts) {
|
|
zjl.setFlags(0, 8192);
|
|
if (this.R.t && zjl.isUpdated() && !zjl.isRemoved() && !zjl.shouldIgnore()) {
|
|
this.U.b.c(this.g.hasStableIds() ? zjl.getItemId() : zjl.mPosition, zjl);
|
|
}
|
|
this.U.c(zjl, sts);
|
|
}
|
|
|
|
private void e(int[] iArr) {
|
|
Emo emo = this.n;
|
|
int c2 = emo.d.c() - emo.b.size();
|
|
if (c2 == 0) {
|
|
iArr[0] = -1;
|
|
iArr[1] = -1;
|
|
return;
|
|
}
|
|
int i = Integer.MAX_VALUE;
|
|
int i2 = PKIFailureInfo.systemUnavail;
|
|
for (int i3 = 0; i3 < c2; i3++) {
|
|
Emo emo2 = this.n;
|
|
View e2 = emo2.d.e(emo2.a(i3));
|
|
zJl zjl = e2 == null ? null : ((saX) e2.getLayoutParams()).g;
|
|
if (!zjl.shouldIgnore()) {
|
|
int layoutPosition = zjl.getLayoutPosition();
|
|
if (layoutPosition < i) {
|
|
i = layoutPosition;
|
|
}
|
|
if (layoutPosition > i2) {
|
|
i2 = layoutPosition;
|
|
}
|
|
}
|
|
}
|
|
iArr[0] = i;
|
|
iArr[1] = i2;
|
|
}
|
|
|
|
@Override // android.view.ViewGroup, android.view.View
|
|
protected void onLayout(boolean z, int i, int i2, int i3, int i4) {
|
|
Lfp.b("RV OnLayout");
|
|
k();
|
|
Lfp.c();
|
|
this.f6394o = true;
|
|
}
|
|
|
|
@Override // android.view.View, android.view.ViewParent
|
|
public void requestLayout() {
|
|
if (this.s != 0 || this.D) {
|
|
this.C = true;
|
|
} else {
|
|
super.requestLayout();
|
|
}
|
|
}
|
|
|
|
private void u() {
|
|
int c2 = this.n.d.c();
|
|
for (int i = 0; i < c2; i++) {
|
|
((saX) this.n.d.e(i).getLayoutParams()).b = true;
|
|
}
|
|
this.M.a();
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void draw(Canvas canvas) {
|
|
boolean z;
|
|
super.draw(canvas);
|
|
int size = this.u.size();
|
|
boolean z2 = false;
|
|
for (int i = 0; i < size; i++) {
|
|
this.u.get(i).NS_(canvas, this, this.R);
|
|
}
|
|
EdgeEffect edgeEffect = this.au;
|
|
if (edgeEffect == null || edgeEffect.isFinished()) {
|
|
z = false;
|
|
} else {
|
|
int save = canvas.save();
|
|
int paddingBottom = this.m ? getPaddingBottom() : 0;
|
|
canvas.rotate(270.0f);
|
|
canvas.translate((-getHeight()) + paddingBottom, BitmapDescriptorFactory.HUE_RED);
|
|
EdgeEffect edgeEffect2 = this.au;
|
|
z = edgeEffect2 != null && edgeEffect2.draw(canvas);
|
|
canvas.restoreToCount(save);
|
|
}
|
|
EdgeEffect edgeEffect3 = this.aG;
|
|
if (edgeEffect3 != null && !edgeEffect3.isFinished()) {
|
|
int save2 = canvas.save();
|
|
if (this.m) {
|
|
canvas.translate(getPaddingLeft(), getPaddingTop());
|
|
}
|
|
EdgeEffect edgeEffect4 = this.aG;
|
|
z |= edgeEffect4 != null && edgeEffect4.draw(canvas);
|
|
canvas.restoreToCount(save2);
|
|
}
|
|
EdgeEffect edgeEffect5 = this.ax;
|
|
if (edgeEffect5 != null && !edgeEffect5.isFinished()) {
|
|
int save3 = canvas.save();
|
|
int width = getWidth();
|
|
int paddingTop = this.m ? getPaddingTop() : 0;
|
|
canvas.rotate(90.0f);
|
|
canvas.translate(paddingTop, -width);
|
|
EdgeEffect edgeEffect6 = this.ax;
|
|
z |= edgeEffect6 != null && edgeEffect6.draw(canvas);
|
|
canvas.restoreToCount(save3);
|
|
}
|
|
EdgeEffect edgeEffect7 = this.ac;
|
|
if (edgeEffect7 != null && !edgeEffect7.isFinished()) {
|
|
int save4 = canvas.save();
|
|
canvas.rotate(180.0f);
|
|
if (this.m) {
|
|
canvas.translate((-getWidth()) + getPaddingRight(), (-getHeight()) + getPaddingBottom());
|
|
} else {
|
|
canvas.translate(-getWidth(), -getHeight());
|
|
}
|
|
EdgeEffect edgeEffect8 = this.ac;
|
|
if (edgeEffect8 != null && edgeEffect8.draw(canvas)) {
|
|
z2 = true;
|
|
}
|
|
z |= z2;
|
|
canvas.restoreToCount(save4);
|
|
}
|
|
if ((z || this.t == null || this.u.size() <= 0 || !this.t.isRunning()) && !z) {
|
|
return;
|
|
}
|
|
ViewCompat.N(this);
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void onDraw(Canvas canvas) {
|
|
super.onDraw(canvas);
|
|
int size = this.u.size();
|
|
for (int i = 0; i < size; i++) {
|
|
this.u.get(i).apA_(canvas, this);
|
|
}
|
|
}
|
|
|
|
@Override // android.view.ViewGroup
|
|
protected boolean checkLayoutParams(ViewGroup.LayoutParams layoutParams) {
|
|
return (layoutParams instanceof saX) && this.x.b((saX) layoutParams);
|
|
}
|
|
|
|
@Override // android.view.ViewGroup
|
|
protected ViewGroup.LayoutParams generateDefaultLayoutParams() {
|
|
tOB tob = this.x;
|
|
if (tob == null) {
|
|
StringBuilder sb = new StringBuilder("RecyclerView has no LayoutManager");
|
|
sb.append(e());
|
|
throw new IllegalStateException(sb.toString());
|
|
}
|
|
return tob.e();
|
|
}
|
|
|
|
@Override // android.view.ViewGroup
|
|
public ViewGroup.LayoutParams generateLayoutParams(AttributeSet attributeSet) {
|
|
tOB tob = this.x;
|
|
if (tob == null) {
|
|
StringBuilder sb = new StringBuilder("RecyclerView has no LayoutManager");
|
|
sb.append(e());
|
|
throw new IllegalStateException(sb.toString());
|
|
}
|
|
return tob.Hz_(getContext(), attributeSet);
|
|
}
|
|
|
|
@Override // android.view.ViewGroup
|
|
protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams layoutParams) {
|
|
tOB tob = this.x;
|
|
if (tob == null) {
|
|
StringBuilder sb = new StringBuilder("RecyclerView has no LayoutManager");
|
|
sb.append(e());
|
|
throw new IllegalStateException(sb.toString());
|
|
}
|
|
return tob.AB_(layoutParams);
|
|
}
|
|
|
|
private void o() {
|
|
int c2 = this.n.d.c();
|
|
for (int i = 0; i < c2; i++) {
|
|
View e2 = this.n.d.e(i);
|
|
zJl zjl = e2 == null ? null : ((saX) e2.getLayoutParams()).g;
|
|
if (!zjl.shouldIgnore()) {
|
|
zjl.clearOldPosition();
|
|
}
|
|
}
|
|
this.M.d();
|
|
}
|
|
|
|
final void e(int i, int i2, boolean z) {
|
|
int c2 = this.n.d.c();
|
|
for (int i3 = 0; i3 < c2; i3++) {
|
|
View e2 = this.n.d.e(i3);
|
|
zJl zjl = e2 == null ? null : ((saX) e2.getLayoutParams()).g;
|
|
if (zjl != null && !zjl.shouldIgnore()) {
|
|
if (zjl.mPosition >= i + i2) {
|
|
zjl.offsetPosition(-i2, z);
|
|
this.R.m = true;
|
|
} else if (zjl.mPosition >= i) {
|
|
zjl.flagRemovedAndOffsetPosition(i - 1, -i2, z);
|
|
this.R.m = true;
|
|
}
|
|
}
|
|
}
|
|
huo huoVar = this.M;
|
|
for (int size = huoVar.c.size() - 1; size >= 0; size--) {
|
|
zJl zjl2 = huoVar.c.get(size);
|
|
if (zjl2 != null) {
|
|
if (zjl2.mPosition >= i + i2) {
|
|
zjl2.offsetPosition(-i2, z);
|
|
} else if (zjl2.mPosition >= i) {
|
|
zjl2.addFlags(8);
|
|
huoVar.c(huoVar.c.get(size), true);
|
|
huoVar.c.remove(size);
|
|
}
|
|
}
|
|
}
|
|
requestLayout();
|
|
}
|
|
|
|
final void c(boolean z) {
|
|
this.af = z | this.af;
|
|
this.k = true;
|
|
int c2 = this.n.d.c();
|
|
int i = 0;
|
|
while (true) {
|
|
if (i >= c2) {
|
|
break;
|
|
}
|
|
View e2 = this.n.d.e(i);
|
|
zJl zjl = e2 != null ? ((saX) e2.getLayoutParams()).g : null;
|
|
if (zjl != null && !zjl.shouldIgnore()) {
|
|
zjl.addFlags(6);
|
|
}
|
|
i++;
|
|
}
|
|
u();
|
|
huo huoVar = this.M;
|
|
int size = huoVar.c.size();
|
|
for (int i2 = 0; i2 < size; i2++) {
|
|
zJl zjl2 = huoVar.c.get(i2);
|
|
if (zjl2 != null) {
|
|
zjl2.addFlags(6);
|
|
zjl2.addChangePayload(null);
|
|
}
|
|
}
|
|
if (huoVar.g.g == null || !huoVar.g.g.hasStableIds()) {
|
|
huoVar.c();
|
|
}
|
|
}
|
|
|
|
public final zJl g(View view) {
|
|
ViewParent parent = view.getParent();
|
|
if (parent == null || parent == this) {
|
|
if (view == null) {
|
|
return null;
|
|
}
|
|
return ((saX) view.getLayoutParams()).g;
|
|
}
|
|
StringBuilder sb = new StringBuilder("View ");
|
|
sb.append(view);
|
|
sb.append(" is not a direct child of ");
|
|
sb.append(this);
|
|
throw new IllegalArgumentException(sb.toString());
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:9:0x0016, code lost:
|
|
|
|
return null;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final android.view.View b(android.view.View r3) {
|
|
/*
|
|
r2 = this;
|
|
android.view.ViewParent r0 = r3.getParent()
|
|
L4:
|
|
if (r0 == 0) goto L14
|
|
if (r0 == r2) goto L14
|
|
boolean r1 = r0 instanceof android.view.View
|
|
if (r1 == 0) goto L14
|
|
r3 = r0
|
|
android.view.View r3 = (android.view.View) r3
|
|
android.view.ViewParent r0 = r3.getParent()
|
|
goto L4
|
|
L14:
|
|
if (r0 == r2) goto L17
|
|
r3 = 0
|
|
L17:
|
|
return r3
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.RecyclerView.b(android.view.View):android.view.View");
|
|
}
|
|
|
|
public static zJl c(View view) {
|
|
if (view == null) {
|
|
return null;
|
|
}
|
|
return ((saX) view.getLayoutParams()).g;
|
|
}
|
|
|
|
public final zJl a(int i) {
|
|
if (this.k) {
|
|
return null;
|
|
}
|
|
int c2 = this.n.d.c();
|
|
zJl zjl = null;
|
|
for (int i2 = 0; i2 < c2; i2++) {
|
|
View e2 = this.n.d.e(i2);
|
|
zJl zjl2 = e2 == null ? null : ((saX) e2.getLayoutParams()).g;
|
|
if (zjl2 != null && !zjl2.isRemoved()) {
|
|
if (((zjl2.hasAnyOfTheFlags(524) || !zjl2.isBound()) ? -1 : this.j.a(zjl2.mPosition)) == i) {
|
|
if (!this.n.b.contains(zjl2.itemView)) {
|
|
return zjl2;
|
|
}
|
|
zjl = zjl2;
|
|
} else {
|
|
continue;
|
|
}
|
|
}
|
|
}
|
|
return zjl;
|
|
}
|
|
|
|
public final zJl b(long j) {
|
|
Sts sts = this.g;
|
|
if (sts == null || !sts.hasStableIds()) {
|
|
return null;
|
|
}
|
|
int c2 = this.n.d.c();
|
|
zJl zjl = null;
|
|
for (int i = 0; i < c2; i++) {
|
|
View e2 = this.n.d.e(i);
|
|
zJl zjl2 = e2 == null ? null : ((saX) e2.getLayoutParams()).g;
|
|
if (zjl2 != null && !zjl2.isRemoved() && zjl2.getItemId() == j) {
|
|
if (!this.n.b.contains(zjl2.itemView)) {
|
|
return zjl2;
|
|
}
|
|
zjl = zjl2;
|
|
}
|
|
}
|
|
return zjl;
|
|
}
|
|
|
|
public final View a(float f, float f2) {
|
|
Emo emo = this.n;
|
|
for (int c2 = (emo.d.c() - emo.b.size()) - 1; c2 >= 0; c2--) {
|
|
Emo emo2 = this.n;
|
|
View e2 = emo2.d.e(emo2.a(c2));
|
|
float translationX = e2.getTranslationX();
|
|
float translationY = e2.getTranslationY();
|
|
if (f >= e2.getLeft() + translationX && f <= e2.getRight() + translationX && f2 >= e2.getTop() + translationY && f2 <= e2.getBottom() + translationY) {
|
|
return e2;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
@Override // android.view.ViewGroup
|
|
public boolean drawChild(Canvas canvas, View view, long j) {
|
|
return super.drawChild(canvas, view, j);
|
|
}
|
|
|
|
public static void Aa_(View view, Rect rect) {
|
|
zY_(view, rect);
|
|
}
|
|
|
|
static void zY_(View view, Rect rect) {
|
|
saX sax = (saX) view.getLayoutParams();
|
|
Rect rect2 = sax.d;
|
|
int left = view.getLeft();
|
|
int i = rect2.left;
|
|
int i2 = ((ViewGroup.MarginLayoutParams) sax).leftMargin;
|
|
int top = view.getTop();
|
|
int i3 = rect2.top;
|
|
int i4 = ((ViewGroup.MarginLayoutParams) sax).topMargin;
|
|
int right = view.getRight();
|
|
int i5 = rect2.right;
|
|
rect.set((left - i) - i2, (top - i3) - i4, right + i5 + ((ViewGroup.MarginLayoutParams) sax).rightMargin, view.getBottom() + rect2.bottom + ((ViewGroup.MarginLayoutParams) sax).bottomMargin);
|
|
}
|
|
|
|
public final Rect Ab_(View view) {
|
|
saX sax = (saX) view.getLayoutParams();
|
|
if (!sax.b) {
|
|
return sax.d;
|
|
}
|
|
if (this.R.c && (sax.g.isUpdated() || sax.g.isInvalid())) {
|
|
return sax.d;
|
|
}
|
|
Rect rect = sax.d;
|
|
rect.set(0, 0, 0, 0);
|
|
int size = this.u.size();
|
|
for (int i = 0; i < size; i++) {
|
|
this.Q.set(0, 0, 0, 0);
|
|
this.u.get(i).apG_(this.Q, view, this, this.R);
|
|
rect.left += this.Q.left;
|
|
rect.top += this.Q.top;
|
|
rect.right += this.Q.right;
|
|
rect.bottom += this.Q.bottom;
|
|
}
|
|
sax.b = false;
|
|
return rect;
|
|
}
|
|
|
|
final void a(int i, int i2) {
|
|
this.ah++;
|
|
int scrollX = getScrollX();
|
|
int scrollY = getScrollY();
|
|
onScrollChanged(scrollX, scrollY, scrollX - i, scrollY - i2);
|
|
dAO dao = this.az;
|
|
if (dao != null) {
|
|
dao.onScrolled(this, i, i2);
|
|
}
|
|
List<dAO> list = this.S;
|
|
if (list != null) {
|
|
for (int size = list.size() - 1; size >= 0; size--) {
|
|
this.S.get(size).onScrolled(this, i, i2);
|
|
}
|
|
}
|
|
this.ah--;
|
|
}
|
|
|
|
public final void c(int i) {
|
|
tOB tob = this.x;
|
|
if (tob != null) {
|
|
tob.j(i);
|
|
}
|
|
dAO dao = this.az;
|
|
if (dao != null) {
|
|
dao.onScrollStateChanged(this, i);
|
|
}
|
|
List<dAO> list = this.S;
|
|
if (list != null) {
|
|
for (int size = list.size() - 1; size >= 0; size--) {
|
|
this.S.get(size).onScrollStateChanged(this, i);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final boolean d() {
|
|
return !this.f6394o || this.k || this.j.d.size() > 0;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public class SYO implements Runnable {
|
|
int a;
|
|
int c;
|
|
OverScroller e;
|
|
final RecyclerView g;
|
|
Interpolator d = RecyclerView.d;
|
|
boolean b = false;
|
|
boolean h = false;
|
|
|
|
SYO(RecyclerView recyclerView) {
|
|
this.g = recyclerView;
|
|
this.e = new OverScroller(recyclerView.getContext(), RecyclerView.d);
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i;
|
|
int i2;
|
|
if (this.g.x != null) {
|
|
this.h = false;
|
|
this.b = true;
|
|
this.g.c();
|
|
OverScroller overScroller = this.e;
|
|
if (overScroller.computeScrollOffset()) {
|
|
int currX = overScroller.getCurrX();
|
|
int currY = overScroller.getCurrY();
|
|
int i3 = currX - this.a;
|
|
int i4 = currY - this.c;
|
|
this.a = currX;
|
|
this.c = currY;
|
|
this.g.K[0] = 0;
|
|
this.g.K[1] = 0;
|
|
RecyclerView recyclerView = this.g;
|
|
if (recyclerView.c(i3, i4, recyclerView.K, null, 1)) {
|
|
i3 -= this.g.K[0];
|
|
i4 -= this.g.K[1];
|
|
}
|
|
if (this.g.getOverScrollMode() != 2) {
|
|
this.g.d(i3, i4);
|
|
}
|
|
if (this.g.g != null) {
|
|
this.g.K[0] = 0;
|
|
this.g.K[1] = 0;
|
|
RecyclerView recyclerView2 = this.g;
|
|
recyclerView2.b(i3, i4, recyclerView2.K);
|
|
i = this.g.K[0];
|
|
i2 = this.g.K[1];
|
|
i3 -= i;
|
|
i4 -= i2;
|
|
CeN ceN = this.g.x.u;
|
|
if (ceN != null && !ceN.c && ceN.h) {
|
|
AcL acL = this.g.R;
|
|
int i5 = acL.c ? acL.i - acL.b : acL.h;
|
|
if (i5 == 0) {
|
|
ceN.c();
|
|
} else if (ceN.f < i5) {
|
|
ceN.a(i, i2);
|
|
} else {
|
|
ceN.f = i5 - 1;
|
|
ceN.a(i, i2);
|
|
}
|
|
}
|
|
} else {
|
|
i = 0;
|
|
i2 = 0;
|
|
}
|
|
if (!this.g.u.isEmpty()) {
|
|
this.g.invalidate();
|
|
}
|
|
this.g.K[0] = 0;
|
|
this.g.K[1] = 0;
|
|
RecyclerView recyclerView3 = this.g;
|
|
recyclerView3.d(i, i2, i3, i4, null, 1, recyclerView3.K);
|
|
int i6 = i3 - this.g.K[0];
|
|
int i7 = i4 - this.g.K[1];
|
|
if (i != 0 || i2 != 0) {
|
|
this.g.a(i, i2);
|
|
}
|
|
if (!this.g.awakenScrollBars()) {
|
|
this.g.invalidate();
|
|
}
|
|
boolean z = overScroller.isFinished() || (((overScroller.getCurrX() == overScroller.getFinalX()) || i6 != 0) && ((overScroller.getCurrY() == overScroller.getFinalY()) || i7 != 0));
|
|
CeN ceN2 = this.g.x.u;
|
|
if ((ceN2 == null || !ceN2.c) && z) {
|
|
if (this.g.getOverScrollMode() != 2) {
|
|
int currVelocity = (int) overScroller.getCurrVelocity();
|
|
int i8 = i6 < 0 ? -currVelocity : i6 > 0 ? currVelocity : 0;
|
|
if (i7 < 0) {
|
|
currVelocity = -currVelocity;
|
|
} else if (i7 <= 0) {
|
|
currVelocity = 0;
|
|
}
|
|
this.g.c(i8, currVelocity);
|
|
}
|
|
if (RecyclerView.a) {
|
|
qtT.LWm lWm = this.g.J;
|
|
int[] iArr = lWm.c;
|
|
if (iArr != null) {
|
|
Arrays.fill(iArr, -1);
|
|
}
|
|
lWm.e = 0;
|
|
}
|
|
} else {
|
|
d();
|
|
if (this.g.l != null) {
|
|
this.g.l.a(this.g, i, i2);
|
|
}
|
|
}
|
|
}
|
|
CeN ceN3 = this.g.x.u;
|
|
if (ceN3 != null && ceN3.c) {
|
|
ceN3.a(0, 0);
|
|
}
|
|
this.b = false;
|
|
if (!this.h) {
|
|
RecyclerView recyclerView4 = this.g;
|
|
if (recyclerView4.O != 0) {
|
|
recyclerView4.O = 0;
|
|
recyclerView4.a();
|
|
recyclerView4.c(0);
|
|
}
|
|
RecyclerView recyclerView5 = this.g;
|
|
if (recyclerView5.P == null) {
|
|
recyclerView5.P = new FgG(recyclerView5);
|
|
}
|
|
recyclerView5.P.a(1);
|
|
return;
|
|
}
|
|
this.g.removeCallbacks(this);
|
|
ViewCompat.e(this.g, this);
|
|
return;
|
|
}
|
|
this.g.removeCallbacks(this);
|
|
this.e.abortAnimation();
|
|
}
|
|
|
|
private void d() {
|
|
if (this.b) {
|
|
this.h = true;
|
|
} else {
|
|
this.g.removeCallbacks(this);
|
|
ViewCompat.e(this.g, this);
|
|
}
|
|
}
|
|
|
|
public final void Ax_(int i, int i2, int i3, Interpolator interpolator) {
|
|
if (i3 == Integer.MIN_VALUE) {
|
|
i3 = b(i, i2);
|
|
}
|
|
int i4 = i3;
|
|
if (interpolator == null) {
|
|
interpolator = RecyclerView.d;
|
|
}
|
|
if (this.d != interpolator) {
|
|
this.d = interpolator;
|
|
this.e = new OverScroller(this.g.getContext(), interpolator);
|
|
}
|
|
this.c = 0;
|
|
this.a = 0;
|
|
RecyclerView recyclerView = this.g;
|
|
if (2 != recyclerView.O) {
|
|
recyclerView.O = 2;
|
|
recyclerView.c(2);
|
|
}
|
|
this.e.startScroll(0, 0, i, i2, i4);
|
|
d();
|
|
}
|
|
|
|
private int b(int i, int i2) {
|
|
int abs = Math.abs(i);
|
|
int abs2 = Math.abs(i2);
|
|
boolean z = abs > abs2;
|
|
RecyclerView recyclerView = this.g;
|
|
int width = z ? recyclerView.getWidth() : recyclerView.getHeight();
|
|
if (!z) {
|
|
abs = abs2;
|
|
}
|
|
return Math.min((int) (((abs / width) + 1.0f) * 300.0f), CredentialsApi.CREDENTIAL_PICKER_REQUEST_CODE);
|
|
}
|
|
}
|
|
|
|
private void v() {
|
|
Emo emo = this.n;
|
|
int c2 = emo.d.c() - emo.b.size();
|
|
for (int i = 0; i < c2; i++) {
|
|
Emo emo2 = this.n;
|
|
View e2 = emo2.d.e(emo2.a(i));
|
|
zJl g = g(e2);
|
|
if (g != null && g.mShadowingHolder != null) {
|
|
View view = g.mShadowingHolder.itemView;
|
|
int left = e2.getLeft();
|
|
int top = e2.getTop();
|
|
if (left != view.getLeft() || top != view.getTop()) {
|
|
view.layout(left, top, view.getWidth() + left, view.getHeight() + top);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public class Heg extends LWm {
|
|
final RecyclerView c;
|
|
|
|
Heg(RecyclerView recyclerView) {
|
|
this.c = recyclerView;
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.LWm
|
|
public final void c() {
|
|
this.c.c((String) null);
|
|
this.c.R.m = true;
|
|
this.c.c(true);
|
|
if (this.c.j.d.size() > 0) {
|
|
return;
|
|
}
|
|
this.c.requestLayout();
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.LWm
|
|
public final void c(int i, int i2, Object obj) {
|
|
this.c.c((String) null);
|
|
UtV utV = this.c.j;
|
|
if (i2 <= 0) {
|
|
return;
|
|
}
|
|
utV.d.add(utV.a(4, i, i2, obj));
|
|
utV.e |= 4;
|
|
if (utV.d.size() == 1) {
|
|
b();
|
|
}
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.LWm
|
|
public final void b(int i, int i2) {
|
|
this.c.c((String) null);
|
|
UtV utV = this.c.j;
|
|
if (i2 <= 0) {
|
|
return;
|
|
}
|
|
utV.d.add(utV.a(1, i, i2, null));
|
|
utV.e |= 1;
|
|
if (utV.d.size() == 1) {
|
|
b();
|
|
}
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.LWm
|
|
public final void a(int i, int i2) {
|
|
this.c.c((String) null);
|
|
UtV utV = this.c.j;
|
|
if (i2 <= 0) {
|
|
return;
|
|
}
|
|
utV.d.add(utV.a(2, i, i2, null));
|
|
utV.e |= 2;
|
|
if (utV.d.size() == 1) {
|
|
b();
|
|
}
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.LWm
|
|
public final void d(int i, int i2) {
|
|
this.c.c((String) null);
|
|
UtV utV = this.c.j;
|
|
if (i == i2) {
|
|
return;
|
|
}
|
|
utV.d.add(utV.a(8, i, i2, null));
|
|
utV.e |= 8;
|
|
if (utV.d.size() == 1) {
|
|
b();
|
|
}
|
|
}
|
|
|
|
private void b() {
|
|
if (RecyclerView.e && this.c.r && this.c.q) {
|
|
RecyclerView recyclerView = this.c;
|
|
ViewCompat.e(recyclerView, recyclerView.T);
|
|
} else {
|
|
this.c.f = true;
|
|
this.c.requestLayout();
|
|
}
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.LWm
|
|
public final void d() {
|
|
Sts sts;
|
|
if (this.c.F == null || (sts = this.c.g) == null || !sts.canRestoreState()) {
|
|
return;
|
|
}
|
|
this.c.requestLayout();
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static class IeS {
|
|
protected static EdgeEffect Ae_(RecyclerView recyclerView) {
|
|
return new EdgeEffect(recyclerView.getContext());
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static class ZnX {
|
|
SparseArray<HBt> c = new SparseArray<>();
|
|
int b = 0;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public static class HBt {
|
|
final ArrayList<zJl> b = new ArrayList<>();
|
|
int a = 5;
|
|
long d = 0;
|
|
long c = 0;
|
|
|
|
HBt() {
|
|
}
|
|
}
|
|
|
|
public final zJl b(int i) {
|
|
HBt hBt = this.c.get(i);
|
|
if (hBt == null || hBt.b.isEmpty()) {
|
|
return null;
|
|
}
|
|
ArrayList<zJl> arrayList = hBt.b;
|
|
for (int size = arrayList.size() - 1; size >= 0; size--) {
|
|
if (!arrayList.get(size).isAttachedToTransitionOverlay()) {
|
|
return arrayList.remove(size);
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public final void d(zJl zjl) {
|
|
int itemViewType = zjl.getItemViewType();
|
|
ArrayList<zJl> arrayList = e(itemViewType).b;
|
|
if (this.c.get(itemViewType).a <= arrayList.size()) {
|
|
return;
|
|
}
|
|
zjl.resetInternal();
|
|
arrayList.add(zjl);
|
|
}
|
|
|
|
static long e(long j, long j2) {
|
|
return j == 0 ? j2 : ((j / 4) * 3) + (j2 / 4);
|
|
}
|
|
|
|
final void a(int i, long j) {
|
|
HBt e = e(i);
|
|
long j2 = e.d;
|
|
if (j2 != 0) {
|
|
j = (j / 4) + ((j2 / 4) * 3);
|
|
}
|
|
e.d = j;
|
|
}
|
|
|
|
final boolean e(int i, long j, long j2) {
|
|
long j3 = e(i).d;
|
|
return j3 == 0 || j + j3 < j2;
|
|
}
|
|
|
|
final HBt e(int i) {
|
|
HBt hBt = this.c.get(i);
|
|
if (hBt != null) {
|
|
return hBt;
|
|
}
|
|
HBt hBt2 = new HBt();
|
|
this.c.put(i, hBt2);
|
|
return hBt2;
|
|
}
|
|
}
|
|
|
|
static RecyclerView e(View view) {
|
|
if (!(view instanceof ViewGroup)) {
|
|
return null;
|
|
}
|
|
if (view instanceof RecyclerView) {
|
|
return (RecyclerView) view;
|
|
}
|
|
ViewGroup viewGroup = (ViewGroup) view;
|
|
int childCount = viewGroup.getChildCount();
|
|
for (int i = 0; i < childCount; i++) {
|
|
RecyclerView e2 = e(viewGroup.getChildAt(i));
|
|
if (e2 != null) {
|
|
return e2;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
static void e(zJl zjl) {
|
|
if (zjl.mNestedRecyclerView != null) {
|
|
RecyclerView recyclerView = zjl.mNestedRecyclerView.get();
|
|
while (recyclerView != null) {
|
|
if (recyclerView == zjl.itemView) {
|
|
return;
|
|
}
|
|
Object parent = recyclerView.getParent();
|
|
recyclerView = parent instanceof View ? (View) parent : null;
|
|
}
|
|
zjl.mNestedRecyclerView = null;
|
|
}
|
|
}
|
|
|
|
public static long b() {
|
|
if (a) {
|
|
return System.nanoTime();
|
|
}
|
|
return 0L;
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class huo {
|
|
int a;
|
|
final ArrayList<zJl> b;
|
|
final ArrayList<zJl> c;
|
|
ArrayList<zJl> d;
|
|
public ZnX e;
|
|
private int f;
|
|
final RecyclerView g;
|
|
ehe h;
|
|
final List<zJl> i;
|
|
|
|
public huo(RecyclerView recyclerView) {
|
|
this.g = recyclerView;
|
|
ArrayList<zJl> arrayList = new ArrayList<>();
|
|
this.b = arrayList;
|
|
this.d = null;
|
|
this.c = new ArrayList<>();
|
|
this.i = Collections.unmodifiableList(arrayList);
|
|
this.a = 2;
|
|
this.f = 2;
|
|
}
|
|
|
|
public final void b() {
|
|
this.f = this.a + (this.g.x != null ? this.g.x.p : 0);
|
|
for (int size = this.c.size() - 1; size >= 0 && this.c.size() > this.f; size--) {
|
|
c(this.c.get(size), true);
|
|
this.c.remove(size);
|
|
}
|
|
}
|
|
|
|
private boolean c(zJl zjl) {
|
|
if (!zjl.isRemoved()) {
|
|
if (zjl.mPosition < 0 || zjl.mPosition >= this.g.g.getItemCount()) {
|
|
StringBuilder sb = new StringBuilder("Inconsistency detected. Invalid view holder adapter position");
|
|
sb.append(zjl);
|
|
sb.append(this.g.e());
|
|
throw new IndexOutOfBoundsException(sb.toString());
|
|
}
|
|
if (this.g.R.c || this.g.g.getItemViewType(zjl.mPosition) == zjl.getItemViewType()) {
|
|
return !this.g.g.hasStableIds() || zjl.getItemId() == this.g.g.getItemId(zjl.mPosition);
|
|
}
|
|
return false;
|
|
}
|
|
return this.g.R.c;
|
|
}
|
|
|
|
private boolean e(zJl zjl, int i, int i2, long j) {
|
|
yZt c;
|
|
zjl.mBindingAdapter = null;
|
|
zjl.mOwnerRecyclerView = this.g;
|
|
int itemViewType = zjl.getItemViewType();
|
|
long b = RecyclerView.b();
|
|
if (j != Long.MAX_VALUE) {
|
|
long j2 = this.e.e(itemViewType).c;
|
|
if (j2 != 0 && j2 + b >= j) {
|
|
return false;
|
|
}
|
|
}
|
|
this.g.g.bindViewHolder(zjl, i);
|
|
long b2 = RecyclerView.b();
|
|
ZnX.HBt e = this.e.e(zjl.getItemViewType());
|
|
e.c = ZnX.e(e.c, b2 - b);
|
|
AccessibilityManager accessibilityManager = this.g.i;
|
|
if (accessibilityManager != null) {
|
|
try {
|
|
if (((Boolean) Class.forName("android.view.accessibility.AccessibilityManager").getMethod("isEnabled", null).invoke(accessibilityManager, null)).booleanValue()) {
|
|
View view = zjl.itemView;
|
|
if (ViewCompat.n(view) == 0) {
|
|
ViewCompat.g(view, 1);
|
|
}
|
|
if (this.g.h != null) {
|
|
TMC.IeS ieS = this.g.h.e;
|
|
if ((ieS instanceof TMC.IeS) && (c = ViewCompat.c(view)) != null && c != ieS) {
|
|
ieS.d.put(view, c);
|
|
}
|
|
ViewCompat.e(view, ieS);
|
|
}
|
|
}
|
|
} catch (Throwable th) {
|
|
Throwable cause = th.getCause();
|
|
if (cause != null) {
|
|
throw cause;
|
|
}
|
|
throw th;
|
|
}
|
|
}
|
|
if (this.g.R.c) {
|
|
zjl.mPreLayoutPosition = i2;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final int e(int i) {
|
|
if (i >= 0) {
|
|
AcL acL = this.g.R;
|
|
if (i < (acL.c ? acL.i - acL.b : acL.h)) {
|
|
return !this.g.R.c ? i : this.g.j.d(i, 0);
|
|
}
|
|
}
|
|
StringBuilder sb = new StringBuilder("invalid position ");
|
|
sb.append(i);
|
|
sb.append(". State item count is ");
|
|
AcL acL2 = this.g.R;
|
|
sb.append(acL2.c ? acL2.i - acL2.b : acL2.h);
|
|
sb.append(this.g.e());
|
|
throw new IndexOutOfBoundsException(sb.toString());
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public final View b(int i) {
|
|
return a(i, Long.MAX_VALUE).itemView;
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:17:0x003b */
|
|
/* JADX WARN: Removed duplicated region for block: B:24:0x005e */
|
|
/* JADX WARN: Removed duplicated region for block: B:26:0x0061 */
|
|
/* JADX WARN: Removed duplicated region for block: B:82:0x01a1 */
|
|
/* JADX WARN: Removed duplicated region for block: B:91:0x01fc */
|
|
/* JADX WARN: Removed duplicated region for block: B:94:0x0226 A[ADDED_TO_REGION] */
|
|
/* JADX WARN: Removed duplicated region for block: B:98:0x020a */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final androidx.recyclerview.widget.RecyclerView.zJl a(int r18, long r19) {
|
|
/*
|
|
Method dump skipped, instructions count: 618
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.RecyclerView.huo.a(int, long):androidx.recyclerview.widget.RecyclerView$zJl");
|
|
}
|
|
|
|
public final void c(View view) {
|
|
zJl c = RecyclerView.c(view);
|
|
if (c.isTmpDetached()) {
|
|
this.g.removeDetachedView(view, false);
|
|
}
|
|
if (c.isScrap()) {
|
|
c.unScrap();
|
|
} else if (c.wasReturnedFromScrap()) {
|
|
c.clearReturnedFromScrapFlag();
|
|
}
|
|
d(c);
|
|
if (this.g.t == null || c.isRecyclable()) {
|
|
return;
|
|
}
|
|
this.g.t.endAnimation(c);
|
|
}
|
|
|
|
final void c() {
|
|
for (int size = this.c.size() - 1; size >= 0; size--) {
|
|
c(this.c.get(size), true);
|
|
this.c.remove(size);
|
|
}
|
|
this.c.clear();
|
|
if (RecyclerView.a) {
|
|
qtT.LWm lWm = this.g.J;
|
|
int[] iArr = lWm.c;
|
|
if (iArr != null) {
|
|
Arrays.fill(iArr, -1);
|
|
}
|
|
lWm.e = 0;
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:26:0x0075, code lost:
|
|
|
|
if (r6.g.J.b(r7.mPosition) == false) goto L32;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:27:0x0077, code lost:
|
|
|
|
r3 = r3 - 1;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:28:0x0079, code lost:
|
|
|
|
if (r3 < 0) goto L59;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:30:0x008d, code lost:
|
|
|
|
if (r6.g.J.b(r6.c.get(r3).mPosition) == false) goto L60;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:32:0x0090, code lost:
|
|
|
|
r3 = r3 + 1;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
final void d(androidx.recyclerview.widget.RecyclerView.zJl r7) {
|
|
/*
|
|
Method dump skipped, instructions count: 285
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.RecyclerView.huo.d(androidx.recyclerview.widget.RecyclerView$zJl):void");
|
|
}
|
|
|
|
public final void c(zJl zjl, boolean z) {
|
|
RecyclerView.e(zjl);
|
|
View view = zjl.itemView;
|
|
if (this.g.h != null) {
|
|
TMC.IeS ieS = this.g.h.e;
|
|
ViewCompat.e(view, ieS instanceof TMC.IeS ? ieS.d.remove(view) : null);
|
|
}
|
|
if (z) {
|
|
a(zjl);
|
|
}
|
|
zjl.mBindingAdapter = null;
|
|
zjl.mOwnerRecyclerView = null;
|
|
if (this.e == null) {
|
|
this.e = new ZnX();
|
|
}
|
|
this.e.d(zjl);
|
|
}
|
|
|
|
final void a(View view) {
|
|
jbe jbeVar;
|
|
zJl c = RecyclerView.c(view);
|
|
if (!c.hasAnyOfTheFlags(12) && c.isUpdated() && (jbeVar = this.g.t) != null && !jbeVar.canReuseUpdatedViewHolder(c, c.getUnmodifiedPayloads())) {
|
|
if (this.d == null) {
|
|
this.d = new ArrayList<>();
|
|
}
|
|
c.setScrapContainer(this, true);
|
|
this.d.add(c);
|
|
return;
|
|
}
|
|
if (c.isInvalid() && !c.isRemoved() && !this.g.g.hasStableIds()) {
|
|
StringBuilder sb = new StringBuilder("Called scrap view with an invalid view. Invalid views cannot be reused from scrap, they should rebound from recycler pool.");
|
|
sb.append(this.g.e());
|
|
throw new IllegalArgumentException(sb.toString());
|
|
}
|
|
c.setScrapContainer(this, false);
|
|
this.b.add(c);
|
|
}
|
|
|
|
final void e(zJl zjl) {
|
|
if (zjl.mInChangeScrap) {
|
|
this.d.remove(zjl);
|
|
} else {
|
|
this.b.remove(zjl);
|
|
}
|
|
zjl.mScrapContainer = null;
|
|
zjl.mInChangeScrap = false;
|
|
zjl.clearReturnedFromScrapFlag();
|
|
}
|
|
|
|
private zJl c(int i) {
|
|
int size;
|
|
int d;
|
|
ArrayList<zJl> arrayList = this.d;
|
|
if (arrayList == null || (size = arrayList.size()) == 0) {
|
|
return null;
|
|
}
|
|
for (int i2 = 0; i2 < size; i2++) {
|
|
zJl zjl = this.d.get(i2);
|
|
if (!zjl.wasReturnedFromScrap() && zjl.getLayoutPosition() == i) {
|
|
zjl.addFlags(32);
|
|
return zjl;
|
|
}
|
|
}
|
|
if (!this.g.g.hasStableIds() || (d = this.g.j.d(i, 0)) <= 0 || d >= this.g.g.getItemCount()) {
|
|
return null;
|
|
}
|
|
long itemId = this.g.g.getItemId(d);
|
|
for (int i3 = 0; i3 < size; i3++) {
|
|
zJl zjl2 = this.d.get(i3);
|
|
if (!zjl2.wasReturnedFromScrap() && zjl2.getItemId() == itemId) {
|
|
zjl2.addFlags(32);
|
|
return zjl2;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
private zJl c(int i, boolean z) {
|
|
View view;
|
|
int size = this.b.size();
|
|
for (int i2 = 0; i2 < size; i2++) {
|
|
zJl zjl = this.b.get(i2);
|
|
if (!zjl.wasReturnedFromScrap() && zjl.getLayoutPosition() == i && !zjl.isInvalid() && (this.g.R.c || !zjl.isRemoved())) {
|
|
zjl.addFlags(32);
|
|
return zjl;
|
|
}
|
|
}
|
|
Emo emo = this.g.n;
|
|
int size2 = emo.b.size();
|
|
int i3 = 0;
|
|
while (true) {
|
|
if (i3 >= size2) {
|
|
view = null;
|
|
break;
|
|
}
|
|
view = emo.b.get(i3);
|
|
zJl c = emo.d.c(view);
|
|
if (c.getLayoutPosition() == i && !c.isInvalid() && !c.isRemoved()) {
|
|
break;
|
|
}
|
|
i3++;
|
|
}
|
|
if (view != null) {
|
|
zJl c2 = RecyclerView.c(view);
|
|
Emo emo2 = this.g.n;
|
|
int a = emo2.d.a(view);
|
|
if (a < 0) {
|
|
throw new IllegalArgumentException("view is not a child, cannot hide ".concat(String.valueOf(view)));
|
|
}
|
|
if (!emo2.e.d(a)) {
|
|
throw new RuntimeException("trying to unhide a view that was not hidden".concat(String.valueOf(view)));
|
|
}
|
|
emo2.e.b(a);
|
|
if (emo2.b.remove(view)) {
|
|
emo2.d.b(view);
|
|
}
|
|
int b = this.g.n.b(view);
|
|
if (b == -1) {
|
|
StringBuilder sb = new StringBuilder("layout index should not be -1 after unhiding a view:");
|
|
sb.append(c2);
|
|
sb.append(this.g.e());
|
|
throw new IllegalStateException(sb.toString());
|
|
}
|
|
Emo emo3 = this.g.n;
|
|
int a2 = emo3.a(b);
|
|
emo3.e.a(a2);
|
|
emo3.d.b(a2);
|
|
a(view);
|
|
c2.addFlags(8224);
|
|
return c2;
|
|
}
|
|
int size3 = this.c.size();
|
|
for (int i4 = 0; i4 < size3; i4++) {
|
|
zJl zjl2 = this.c.get(i4);
|
|
if (!zjl2.isInvalid() && zjl2.getLayoutPosition() == i && !zjl2.isAttachedToTransitionOverlay()) {
|
|
this.c.remove(i4);
|
|
return zjl2;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
private zJl d(long j, int i, boolean z) {
|
|
for (int size = this.b.size() - 1; size >= 0; size--) {
|
|
zJl zjl = this.b.get(size);
|
|
if (zjl.getItemId() == j && !zjl.wasReturnedFromScrap()) {
|
|
if (i == zjl.getItemViewType()) {
|
|
zjl.addFlags(32);
|
|
if (zjl.isRemoved() && !this.g.R.c) {
|
|
zjl.setFlags(2, 14);
|
|
}
|
|
return zjl;
|
|
}
|
|
this.b.remove(size);
|
|
this.g.removeDetachedView(zjl.itemView, false);
|
|
zJl c = RecyclerView.c(zjl.itemView);
|
|
c.mScrapContainer = null;
|
|
c.mInChangeScrap = false;
|
|
c.clearReturnedFromScrapFlag();
|
|
d(c);
|
|
}
|
|
}
|
|
for (int size2 = this.c.size() - 1; size2 >= 0; size2--) {
|
|
zJl zjl2 = this.c.get(size2);
|
|
if (zjl2.getItemId() == j && !zjl2.isAttachedToTransitionOverlay()) {
|
|
if (i == zjl2.getItemViewType()) {
|
|
this.c.remove(size2);
|
|
return zjl2;
|
|
}
|
|
c(this.c.get(size2), true);
|
|
this.c.remove(size2);
|
|
return null;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
private void a(zJl zjl) {
|
|
if (this.g.N != null) {
|
|
mxa mxaVar = this.g.N;
|
|
}
|
|
int size = this.g.L.size();
|
|
for (int i = 0; i < size; i++) {
|
|
this.g.L.get(i);
|
|
}
|
|
if (this.g.g != null) {
|
|
this.g.g.onViewRecycled(zjl);
|
|
}
|
|
if (this.g.R != null) {
|
|
this.g.U.b(zjl);
|
|
}
|
|
}
|
|
|
|
final void d() {
|
|
int size = this.c.size();
|
|
for (int i = 0; i < size; i++) {
|
|
this.c.get(i).clearOldPosition();
|
|
}
|
|
int size2 = this.b.size();
|
|
for (int i2 = 0; i2 < size2; i2++) {
|
|
this.b.get(i2).clearOldPosition();
|
|
}
|
|
ArrayList<zJl> arrayList = this.d;
|
|
if (arrayList != null) {
|
|
int size3 = arrayList.size();
|
|
for (int i3 = 0; i3 < size3; i3++) {
|
|
this.d.get(i3).clearOldPosition();
|
|
}
|
|
}
|
|
}
|
|
|
|
final void a() {
|
|
int size = this.c.size();
|
|
for (int i = 0; i < size; i++) {
|
|
saX sax = (saX) this.c.get(i).itemView.getLayoutParams();
|
|
if (sax != null) {
|
|
sax.b = true;
|
|
}
|
|
}
|
|
}
|
|
|
|
public final View d(int i) {
|
|
return a(i, Long.MAX_VALUE).itemView;
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static abstract class Sts<VH extends zJl> {
|
|
private final HBt mObservable = new HBt();
|
|
private boolean mHasStableIds = false;
|
|
private HBt mStateRestorationPolicy = HBt.ALLOW;
|
|
|
|
/* loaded from: classes.dex */
|
|
public enum HBt {
|
|
ALLOW,
|
|
PREVENT_WHEN_EMPTY,
|
|
PREVENT
|
|
}
|
|
|
|
public int findRelativeAdapterPositionIn(Sts<? extends zJl> sts, zJl zjl, int i) {
|
|
if (sts == this) {
|
|
return i;
|
|
}
|
|
return -1;
|
|
}
|
|
|
|
public abstract int getItemCount();
|
|
|
|
public long getItemId(int i) {
|
|
return -1L;
|
|
}
|
|
|
|
public int getItemViewType(int i) {
|
|
return 0;
|
|
}
|
|
|
|
public void onAttachedToRecyclerView(RecyclerView recyclerView) {
|
|
}
|
|
|
|
public abstract void onBindViewHolder(VH vh, int i);
|
|
|
|
public abstract VH onCreateViewHolder(ViewGroup viewGroup, int i);
|
|
|
|
public void onDetachedFromRecyclerView(RecyclerView recyclerView) {
|
|
}
|
|
|
|
public boolean onFailedToRecycleView(VH vh) {
|
|
return false;
|
|
}
|
|
|
|
public void onViewAttachedToWindow(VH vh) {
|
|
}
|
|
|
|
public void onViewDetachedFromWindow(VH vh) {
|
|
}
|
|
|
|
public void onViewRecycled(VH vh) {
|
|
}
|
|
|
|
public void onBindViewHolder(VH vh, int i, List<Object> list) {
|
|
onBindViewHolder(vh, i);
|
|
}
|
|
|
|
public final VH createViewHolder(ViewGroup viewGroup, int i) {
|
|
try {
|
|
Lfp.b("RV CreateView");
|
|
VH onCreateViewHolder = onCreateViewHolder(viewGroup, i);
|
|
if (onCreateViewHolder.itemView.getParent() != null) {
|
|
throw new IllegalStateException("ViewHolder views must not be attached when created. Ensure that you are not passing 'true' to the attachToRoot parameter of LayoutInflater.inflate(..., boolean attachToRoot)");
|
|
}
|
|
onCreateViewHolder.mItemViewType = i;
|
|
return onCreateViewHolder;
|
|
} finally {
|
|
Lfp.c();
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public final void bindViewHolder(VH vh, int i) {
|
|
boolean z = vh.mBindingAdapter == null;
|
|
if (z) {
|
|
vh.mPosition = i;
|
|
if (hasStableIds()) {
|
|
vh.mItemId = getItemId(i);
|
|
}
|
|
vh.setFlags(1, 519);
|
|
Lfp.b("RV OnBindView");
|
|
}
|
|
vh.mBindingAdapter = this;
|
|
onBindViewHolder(vh, i, vh.getUnmodifiedPayloads());
|
|
if (z) {
|
|
vh.clearPayload();
|
|
ViewGroup.LayoutParams layoutParams = vh.itemView.getLayoutParams();
|
|
if (layoutParams instanceof saX) {
|
|
((saX) layoutParams).b = true;
|
|
}
|
|
Lfp.c();
|
|
}
|
|
}
|
|
|
|
public void setHasStableIds(boolean z) {
|
|
if (hasObservers()) {
|
|
throw new IllegalStateException("Cannot change whether this adapter has stable IDs while the adapter has registered observers.");
|
|
}
|
|
this.mHasStableIds = z;
|
|
}
|
|
|
|
public final boolean hasObservers() {
|
|
return this.mObservable.a();
|
|
}
|
|
|
|
public void registerAdapterDataObserver(LWm lWm) {
|
|
this.mObservable.registerObserver(lWm);
|
|
}
|
|
|
|
public void unregisterAdapterDataObserver(LWm lWm) {
|
|
this.mObservable.unregisterObserver(lWm);
|
|
}
|
|
|
|
public final void notifyDataSetChanged() {
|
|
this.mObservable.b();
|
|
}
|
|
|
|
public final void notifyItemChanged(int i) {
|
|
this.mObservable.a(i, 1);
|
|
}
|
|
|
|
public final void notifyItemChanged(int i, Object obj) {
|
|
this.mObservable.d(i, 1, obj);
|
|
}
|
|
|
|
public final void notifyItemRangeChanged(int i, int i2) {
|
|
this.mObservable.a(i, i2);
|
|
}
|
|
|
|
public final void notifyItemRangeChanged(int i, int i2, Object obj) {
|
|
this.mObservable.d(i, i2, obj);
|
|
}
|
|
|
|
public final void notifyItemInserted(int i) {
|
|
this.mObservable.e(i, 1);
|
|
}
|
|
|
|
public final void notifyItemMoved(int i, int i2) {
|
|
this.mObservable.c(i, i2);
|
|
}
|
|
|
|
public final void notifyItemRangeInserted(int i, int i2) {
|
|
this.mObservable.e(i, i2);
|
|
}
|
|
|
|
public final void notifyItemRemoved(int i) {
|
|
this.mObservable.d(i, 1);
|
|
}
|
|
|
|
public final void notifyItemRangeRemoved(int i, int i2) {
|
|
this.mObservable.d(i, i2);
|
|
}
|
|
|
|
public void setStateRestorationPolicy(HBt hBt) {
|
|
this.mStateRestorationPolicy = hBt;
|
|
this.mObservable.e();
|
|
}
|
|
|
|
boolean canRestoreState() {
|
|
int i = AnonymousClass7.a[this.mStateRestorationPolicy.ordinal()];
|
|
if (i != 1) {
|
|
return i != 2 || getItemCount() > 0;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final boolean hasStableIds() {
|
|
return this.mHasStableIds;
|
|
}
|
|
|
|
public final HBt getStateRestorationPolicy() {
|
|
return this.mStateRestorationPolicy;
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: androidx.recyclerview.widget.RecyclerView$7, reason: invalid class name */
|
|
/* loaded from: classes.dex */
|
|
public static /* synthetic */ class AnonymousClass7 {
|
|
static final int[] a;
|
|
|
|
static {
|
|
int[] iArr = new int[Sts.HBt.values().length];
|
|
a = iArr;
|
|
try {
|
|
iArr[Sts.HBt.PREVENT.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
a[Sts.HBt.PREVENT_WHEN_EMPTY.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static abstract class tOB {
|
|
private final sQk.LWm b;
|
|
private boolean d;
|
|
private final sQk.LWm e;
|
|
public Emo k;
|
|
public int l;
|
|
public int m;
|
|
public boolean n;
|
|
|
|
/* renamed from: o, reason: collision with root package name */
|
|
sQk f6396o;
|
|
public int p;
|
|
public boolean q;
|
|
public boolean r;
|
|
public RecyclerView s;
|
|
boolean t;
|
|
CeN u;
|
|
sQk v;
|
|
public int w;
|
|
public int x;
|
|
boolean y;
|
|
|
|
/* loaded from: classes.dex */
|
|
public static class IeS {
|
|
public int a;
|
|
public boolean b;
|
|
public boolean c;
|
|
public int d;
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public interface Sts {
|
|
void c(int i, int i2);
|
|
}
|
|
|
|
public static int m() {
|
|
return -1;
|
|
}
|
|
|
|
public void HA_(Parcelable parcelable) {
|
|
}
|
|
|
|
public Parcelable HB_() {
|
|
return null;
|
|
}
|
|
|
|
public int a(AcL acL) {
|
|
return 0;
|
|
}
|
|
|
|
public int a(huo huoVar, AcL acL) {
|
|
return -1;
|
|
}
|
|
|
|
public View a(View view, int i, huo huoVar, AcL acL) {
|
|
return null;
|
|
}
|
|
|
|
public int b(int i, huo huoVar, AcL acL) {
|
|
return 0;
|
|
}
|
|
|
|
public int b(AcL acL) {
|
|
return 0;
|
|
}
|
|
|
|
public void b(int i) {
|
|
}
|
|
|
|
public void b(int i, int i2, AcL acL, Sts sts) {
|
|
}
|
|
|
|
public void b(huo huoVar, AcL acL, View view, AccessibilityNodeInfoCompat accessibilityNodeInfoCompat) {
|
|
}
|
|
|
|
public void b(RecyclerView recyclerView, int i, int i2) {
|
|
}
|
|
|
|
public void b(RecyclerView recyclerView, int i, int i2, int i3) {
|
|
}
|
|
|
|
public boolean b(saX sax) {
|
|
return sax != null;
|
|
}
|
|
|
|
public int c(int i, huo huoVar, AcL acL) {
|
|
return 0;
|
|
}
|
|
|
|
public int c(AcL acL) {
|
|
return 0;
|
|
}
|
|
|
|
public void c(RecyclerView recyclerView) {
|
|
}
|
|
|
|
public void c(RecyclerView recyclerView, int i, int i2) {
|
|
}
|
|
|
|
public boolean c() {
|
|
return false;
|
|
}
|
|
|
|
public int d(huo huoVar, AcL acL) {
|
|
return -1;
|
|
}
|
|
|
|
public void d(int i, Sts sts) {
|
|
}
|
|
|
|
public void d(AcL acL) {
|
|
}
|
|
|
|
public void d(RecyclerView recyclerView, int i) {
|
|
}
|
|
|
|
public void d(RecyclerView recyclerView, int i, int i2) {
|
|
}
|
|
|
|
public boolean d() {
|
|
return false;
|
|
}
|
|
|
|
public int e(AcL acL) {
|
|
return 0;
|
|
}
|
|
|
|
public abstract saX e();
|
|
|
|
public void e(huo huoVar, AcL acL) {
|
|
}
|
|
|
|
public void e(RecyclerView recyclerView, huo huoVar) {
|
|
}
|
|
|
|
public int f(AcL acL) {
|
|
return 0;
|
|
}
|
|
|
|
public int j(AcL acL) {
|
|
return 0;
|
|
}
|
|
|
|
public void j(int i) {
|
|
}
|
|
|
|
public void l_() {
|
|
}
|
|
|
|
boolean m_() {
|
|
return false;
|
|
}
|
|
|
|
public boolean n_() {
|
|
return false;
|
|
}
|
|
|
|
public void t() {
|
|
}
|
|
|
|
public tOB() {
|
|
sQk.LWm lWm = new sQk.LWm(this) { // from class: androidx.recyclerview.widget.RecyclerView.tOB.1
|
|
final tOB b;
|
|
|
|
{
|
|
this.b = this;
|
|
}
|
|
|
|
@Override // o.sQk.LWm
|
|
public final View c(int i) {
|
|
return this.b.f(i);
|
|
}
|
|
|
|
@Override // o.sQk.LWm
|
|
public final int b() {
|
|
return this.b.getPaddingLeft();
|
|
}
|
|
|
|
@Override // o.sQk.LWm
|
|
public final int d(View view) {
|
|
return (view.getLeft() - ((saX) view.getLayoutParams()).d.left) - ((ViewGroup.MarginLayoutParams) ((saX) view.getLayoutParams())).leftMargin;
|
|
}
|
|
|
|
@Override // o.sQk.LWm
|
|
public final int c(View view) {
|
|
return view.getRight() + ((saX) view.getLayoutParams()).d.right + ((ViewGroup.MarginLayoutParams) ((saX) view.getLayoutParams())).rightMargin;
|
|
}
|
|
|
|
@Override // o.sQk.LWm
|
|
public final int e() {
|
|
return this.b.w - this.b.getPaddingRight();
|
|
}
|
|
};
|
|
this.e = lWm;
|
|
sQk.LWm lWm2 = new sQk.LWm(this) { // from class: androidx.recyclerview.widget.RecyclerView.tOB.4
|
|
final tOB b;
|
|
|
|
{
|
|
this.b = this;
|
|
}
|
|
|
|
@Override // o.sQk.LWm
|
|
public final View c(int i) {
|
|
return this.b.f(i);
|
|
}
|
|
|
|
@Override // o.sQk.LWm
|
|
public final int b() {
|
|
return this.b.getPaddingTop();
|
|
}
|
|
|
|
@Override // o.sQk.LWm
|
|
public final int d(View view) {
|
|
return (view.getTop() - ((saX) view.getLayoutParams()).d.top) - ((ViewGroup.MarginLayoutParams) ((saX) view.getLayoutParams())).topMargin;
|
|
}
|
|
|
|
@Override // o.sQk.LWm
|
|
public final int c(View view) {
|
|
return view.getBottom() + ((saX) view.getLayoutParams()).d.bottom + ((ViewGroup.MarginLayoutParams) ((saX) view.getLayoutParams())).bottomMargin;
|
|
}
|
|
|
|
@Override // o.sQk.LWm
|
|
public final int e() {
|
|
return this.b.l - this.b.getPaddingBottom();
|
|
}
|
|
};
|
|
this.b = lWm2;
|
|
this.f6396o = new sQk(lWm);
|
|
this.v = new sQk(lWm2);
|
|
this.y = false;
|
|
this.t = false;
|
|
this.n = false;
|
|
this.d = true;
|
|
this.q = true;
|
|
}
|
|
|
|
final void e(RecyclerView recyclerView) {
|
|
if (recyclerView == null) {
|
|
this.s = null;
|
|
this.k = null;
|
|
this.w = 0;
|
|
this.l = 0;
|
|
} else {
|
|
this.s = recyclerView;
|
|
this.k = recyclerView.n;
|
|
this.w = recyclerView.getWidth();
|
|
this.l = recyclerView.getHeight();
|
|
}
|
|
this.x = 1073741824;
|
|
this.m = 1073741824;
|
|
}
|
|
|
|
final void d(int i, int i2) {
|
|
this.w = View.MeasureSpec.getSize(i);
|
|
int mode = View.MeasureSpec.getMode(i);
|
|
this.x = mode;
|
|
if (mode == 0 && !RecyclerView.c) {
|
|
this.w = 0;
|
|
}
|
|
this.l = View.MeasureSpec.getSize(i2);
|
|
int mode2 = View.MeasureSpec.getMode(i2);
|
|
this.m = mode2;
|
|
if (mode2 != 0 || RecyclerView.c) {
|
|
return;
|
|
}
|
|
this.l = 0;
|
|
}
|
|
|
|
final void a(int i, int i2) {
|
|
int i_ = i_();
|
|
if (i_ == 0) {
|
|
this.s.e(i, i2);
|
|
return;
|
|
}
|
|
int i3 = Integer.MAX_VALUE;
|
|
int i4 = Integer.MIN_VALUE;
|
|
int i5 = Integer.MAX_VALUE;
|
|
int i6 = Integer.MIN_VALUE;
|
|
for (int i7 = 0; i7 < i_; i7++) {
|
|
View f = f(i7);
|
|
Rect rect = this.s.Q;
|
|
It_(f, rect);
|
|
if (rect.left < i3) {
|
|
i3 = rect.left;
|
|
}
|
|
if (rect.right > i6) {
|
|
i6 = rect.right;
|
|
}
|
|
if (rect.top < i5) {
|
|
i5 = rect.top;
|
|
}
|
|
if (rect.bottom > i4) {
|
|
i4 = rect.bottom;
|
|
}
|
|
}
|
|
this.s.Q.set(i3, i5, i6, i4);
|
|
AF_(this.s.Q, i, i2);
|
|
}
|
|
|
|
public void AF_(Rect rect, int i, int i2) {
|
|
int width = rect.width();
|
|
int paddingLeft = getPaddingLeft();
|
|
int paddingRight = getPaddingRight();
|
|
int height = rect.height();
|
|
int paddingTop = getPaddingTop();
|
|
int paddingBottom = getPaddingBottom();
|
|
this.s.setMeasuredDimension(a_(i, width + paddingLeft + paddingRight, ViewCompat.p(this.s)), a_(i2, height + paddingTop + paddingBottom, ViewCompat.o(this.s)));
|
|
}
|
|
|
|
public static int a_(int i, int i2, int i3) {
|
|
int mode = View.MeasureSpec.getMode(i);
|
|
int size = View.MeasureSpec.getSize(i);
|
|
if (mode != Integer.MIN_VALUE) {
|
|
return mode != 1073741824 ? Math.max(i2, i3) : size;
|
|
}
|
|
return Math.min(size, Math.max(i2, i3));
|
|
}
|
|
|
|
public void e(String str) {
|
|
RecyclerView recyclerView = this.s;
|
|
if (recyclerView != null) {
|
|
recyclerView.c(str);
|
|
}
|
|
}
|
|
|
|
public saX AB_(ViewGroup.LayoutParams layoutParams) {
|
|
if (layoutParams instanceof saX) {
|
|
return new saX((saX) layoutParams);
|
|
}
|
|
if (layoutParams instanceof ViewGroup.MarginLayoutParams) {
|
|
return new saX((ViewGroup.MarginLayoutParams) layoutParams);
|
|
}
|
|
return new saX(layoutParams);
|
|
}
|
|
|
|
public saX Hz_(Context context, AttributeSet attributeSet) {
|
|
return new saX(context, attributeSet);
|
|
}
|
|
|
|
public final void c(View view) {
|
|
c(view, 0, true);
|
|
}
|
|
|
|
public final void d(View view, int i) {
|
|
c(view, i, false);
|
|
}
|
|
|
|
private void c(View view, int i, boolean z) {
|
|
View view2;
|
|
zJl c = RecyclerView.c(view);
|
|
if (z || c.isRemoved()) {
|
|
this.s.U.e(c);
|
|
} else {
|
|
Zfp.HBt hBt = this.s.U.d.get(c);
|
|
if (hBt != null) {
|
|
hBt.d &= -2;
|
|
}
|
|
}
|
|
saX sax = (saX) view.getLayoutParams();
|
|
if (c.wasReturnedFromScrap() || c.isScrap()) {
|
|
if (c.isScrap()) {
|
|
c.unScrap();
|
|
} else {
|
|
c.clearReturnedFromScrapFlag();
|
|
}
|
|
this.k.zG_(view, i, view.getLayoutParams(), false);
|
|
} else if (view.getParent() == this.s) {
|
|
int b = this.k.b(view);
|
|
if (i == -1) {
|
|
Emo emo = this.k;
|
|
i = emo.d.c() - emo.b.size();
|
|
}
|
|
if (b == -1) {
|
|
StringBuilder sb = new StringBuilder("Added View has RecyclerView as parent but view is not a real child. Unfiltered index:");
|
|
sb.append(this.s.indexOfChild(view));
|
|
sb.append(this.s.e());
|
|
throw new IllegalStateException(sb.toString());
|
|
}
|
|
if (b != i) {
|
|
tOB tob = this.s.x;
|
|
Emo emo2 = tob.k;
|
|
if (emo2 != null) {
|
|
view2 = emo2.d.e(emo2.a(b));
|
|
} else {
|
|
view2 = null;
|
|
}
|
|
if (view2 == null) {
|
|
StringBuilder sb2 = new StringBuilder("Cannot move a child from non-existing index:");
|
|
sb2.append(b);
|
|
sb2.append(tob.s.toString());
|
|
throw new IllegalArgumentException(sb2.toString());
|
|
}
|
|
Emo emo3 = tob.k;
|
|
if (emo3 != null) {
|
|
emo3.d.e(emo3.a(b));
|
|
}
|
|
Emo emo4 = tob.k;
|
|
int a = emo4.a(b);
|
|
emo4.e.a(a);
|
|
emo4.d.b(a);
|
|
saX sax2 = (saX) view2.getLayoutParams();
|
|
zJl c2 = RecyclerView.c(view2);
|
|
if (!c2.isRemoved()) {
|
|
Zfp.HBt hBt2 = tob.s.U.d.get(c2);
|
|
if (hBt2 != null) {
|
|
hBt2.d &= -2;
|
|
}
|
|
} else {
|
|
tob.s.U.e(c2);
|
|
}
|
|
tob.k.zG_(view2, i, sax2, c2.isRemoved());
|
|
}
|
|
} else {
|
|
this.k.d(view, i, false);
|
|
sax.b = true;
|
|
CeN ceN = this.u;
|
|
if (ceN != null && ceN.h) {
|
|
CeN ceN2 = this.u;
|
|
RecyclerView recyclerView = ceN2.i;
|
|
if (RecyclerView.f(view) == ceN2.f) {
|
|
ceN2.g = view;
|
|
}
|
|
}
|
|
}
|
|
if (sax.e) {
|
|
c.itemView.invalidate();
|
|
sax.e = false;
|
|
}
|
|
}
|
|
|
|
public static int f(View view) {
|
|
return ((saX) view.getLayoutParams()).g.getLayoutPosition();
|
|
}
|
|
|
|
public final View a(View view) {
|
|
View b;
|
|
RecyclerView recyclerView = this.s;
|
|
if (recyclerView == null || (b = recyclerView.b(view)) == null || this.k.b.contains(b)) {
|
|
return null;
|
|
}
|
|
return b;
|
|
}
|
|
|
|
public View a_(int i) {
|
|
int i2;
|
|
View e;
|
|
Emo emo = this.k;
|
|
int c = emo != null ? emo.d.c() - emo.b.size() : 0;
|
|
while (true) {
|
|
if (i2 >= c) {
|
|
return null;
|
|
}
|
|
Emo emo2 = this.k;
|
|
e = emo2 != null ? emo2.d.e(emo2.a(i2)) : null;
|
|
zJl c2 = RecyclerView.c(e);
|
|
i2 = (c2 == null || c2.getLayoutPosition() != i || c2.shouldIgnore() || (!this.s.R.c && c2.isRemoved())) ? i2 + 1 : 0;
|
|
}
|
|
return e;
|
|
}
|
|
|
|
public final void e(int i, huo huoVar) {
|
|
View f = f(i);
|
|
if (f(i) != null) {
|
|
this.k.e(i);
|
|
}
|
|
huoVar.c(f);
|
|
}
|
|
|
|
public final int i_() {
|
|
Emo emo = this.k;
|
|
if (emo != null) {
|
|
return emo.d.c() - emo.b.size();
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public int getPaddingLeft() {
|
|
RecyclerView recyclerView = this.s;
|
|
if (recyclerView != null) {
|
|
return recyclerView.getPaddingLeft();
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public int getPaddingTop() {
|
|
RecyclerView recyclerView = this.s;
|
|
if (recyclerView != null) {
|
|
return recyclerView.getPaddingTop();
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public int getPaddingRight() {
|
|
RecyclerView recyclerView = this.s;
|
|
if (recyclerView != null) {
|
|
return recyclerView.getPaddingRight();
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public int getPaddingBottom() {
|
|
RecyclerView recyclerView = this.s;
|
|
if (recyclerView != null) {
|
|
return recyclerView.getPaddingBottom();
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public int getPaddingStart() {
|
|
RecyclerView recyclerView = this.s;
|
|
if (recyclerView != null) {
|
|
return ViewCompat.q(recyclerView);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public int getPaddingEnd() {
|
|
RecyclerView recyclerView = this.s;
|
|
if (recyclerView != null) {
|
|
return ViewCompat.r(recyclerView);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public final View j_() {
|
|
View focusedChild;
|
|
RecyclerView recyclerView = this.s;
|
|
if (recyclerView == null || (focusedChild = recyclerView.getFocusedChild()) == null || this.k.b.contains(focusedChild)) {
|
|
return null;
|
|
}
|
|
return focusedChild;
|
|
}
|
|
|
|
public void g(int i) {
|
|
RecyclerView recyclerView = this.s;
|
|
if (recyclerView != null) {
|
|
Emo emo = recyclerView.n;
|
|
int c = emo.d.c() - emo.b.size();
|
|
for (int i2 = 0; i2 < c; i2++) {
|
|
Emo emo2 = recyclerView.n;
|
|
emo2.d.e(emo2.a(i2)).offsetLeftAndRight(i);
|
|
}
|
|
}
|
|
}
|
|
|
|
public void i(int i) {
|
|
RecyclerView recyclerView = this.s;
|
|
if (recyclerView != null) {
|
|
Emo emo = recyclerView.n;
|
|
int c = emo.d.c() - emo.b.size();
|
|
for (int i2 = 0; i2 < c; i2++) {
|
|
Emo emo2 = recyclerView.n;
|
|
emo2.d.e(emo2.a(i2)).offsetTopAndBottom(i);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void a(huo huoVar) {
|
|
Emo emo = this.k;
|
|
for (int c = (emo != null ? emo.d.c() - emo.b.size() : 0) - 1; c >= 0; c--) {
|
|
Emo emo2 = this.k;
|
|
View e = emo2 != null ? emo2.d.e(emo2.a(c)) : null;
|
|
zJl c2 = RecyclerView.c(e);
|
|
if (!c2.shouldIgnore()) {
|
|
if (c2.isInvalid() && !c2.isRemoved() && !this.s.g.hasStableIds()) {
|
|
Emo emo3 = this.k;
|
|
if ((emo3 != null ? emo3.d.e(emo3.a(c)) : null) != null) {
|
|
this.k.e(c);
|
|
}
|
|
huoVar.d(c2);
|
|
} else {
|
|
Emo emo4 = this.k;
|
|
if (emo4 != null) {
|
|
emo4.d.e(emo4.a(c));
|
|
}
|
|
Emo emo5 = this.k;
|
|
int a = emo5.a(c);
|
|
emo5.e.a(a);
|
|
emo5.d.b(a);
|
|
huoVar.a(e);
|
|
Zfp.HBt hBt = this.s.U.d.get(c2);
|
|
if (hBt != null) {
|
|
hBt.d &= -2;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
final void e(huo huoVar) {
|
|
int size = huoVar.b.size();
|
|
for (int i = size - 1; i >= 0; i--) {
|
|
View view = huoVar.b.get(i).itemView;
|
|
zJl c = RecyclerView.c(view);
|
|
if (!c.shouldIgnore()) {
|
|
c.setIsRecyclable(false);
|
|
if (c.isTmpDetached()) {
|
|
this.s.removeDetachedView(view, false);
|
|
}
|
|
if (this.s.t != null) {
|
|
this.s.t.endAnimation(c);
|
|
}
|
|
c.setIsRecyclable(true);
|
|
zJl c2 = RecyclerView.c(view);
|
|
c2.mScrapContainer = null;
|
|
c2.mInChangeScrap = false;
|
|
c2.clearReturnedFromScrapFlag();
|
|
huoVar.d(c2);
|
|
}
|
|
}
|
|
huoVar.b.clear();
|
|
ArrayList<zJl> arrayList = huoVar.d;
|
|
if (arrayList != null) {
|
|
arrayList.clear();
|
|
}
|
|
if (size > 0) {
|
|
this.s.invalidate();
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public final boolean a(View view, int i, int i2, saX sax) {
|
|
return (this.d && e(view.getMeasuredWidth(), i, ((ViewGroup.LayoutParams) sax).width) && e(view.getMeasuredHeight(), i2, ((ViewGroup.LayoutParams) sax).height)) ? false : true;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public final boolean d(View view, int i, int i2, saX sax) {
|
|
return (!view.isLayoutRequested() && this.d && e(view.getWidth(), i, ((ViewGroup.LayoutParams) sax).width) && e(view.getHeight(), i2, ((ViewGroup.LayoutParams) sax).height)) ? false : true;
|
|
}
|
|
|
|
private static boolean e(int i, int i2, int i3) {
|
|
int mode = View.MeasureSpec.getMode(i2);
|
|
int size = View.MeasureSpec.getSize(i2);
|
|
if (i3 > 0 && i != i3) {
|
|
return false;
|
|
}
|
|
if (mode == Integer.MIN_VALUE) {
|
|
return size >= i;
|
|
}
|
|
if (mode != 0) {
|
|
return mode == 1073741824 && size == i;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public void o(View view) {
|
|
saX sax = (saX) view.getLayoutParams();
|
|
Rect Ab_ = this.s.Ab_(view);
|
|
int i = Ab_.left;
|
|
int i2 = Ab_.right;
|
|
int i3 = Ab_.top;
|
|
int i4 = Ab_.bottom;
|
|
int i5 = this.w;
|
|
int i6 = this.x;
|
|
int paddingLeft = getPaddingLeft();
|
|
int paddingRight = getPaddingRight();
|
|
int i7 = ((ViewGroup.MarginLayoutParams) sax).leftMargin;
|
|
int d = d(i5, i6, paddingLeft + paddingRight + i7 + ((ViewGroup.MarginLayoutParams) sax).rightMargin + i + i2, ((ViewGroup.LayoutParams) sax).width, d());
|
|
int i8 = this.l;
|
|
int i9 = this.m;
|
|
int paddingTop = getPaddingTop();
|
|
int paddingBottom = getPaddingBottom();
|
|
int i10 = ((ViewGroup.MarginLayoutParams) sax).topMargin;
|
|
int d2 = d(i8, i9, paddingTop + paddingBottom + i10 + ((ViewGroup.MarginLayoutParams) sax).bottomMargin + i3 + i4, ((ViewGroup.LayoutParams) sax).height, c());
|
|
if (d(view, d, d2, sax)) {
|
|
view.measure(d, d2);
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:7:0x0015, code lost:
|
|
|
|
if (r4 == 1073741824) goto L13;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static int d(int r3, int r4, int r5, int r6, boolean r7) {
|
|
/*
|
|
int r3 = r3 - r5
|
|
r5 = 0
|
|
int r3 = java.lang.Math.max(r5, r3)
|
|
r0 = -1
|
|
r1 = -2147483648(0xffffffff80000000, float:-0.0)
|
|
r2 = 1073741824(0x40000000, float:2.0)
|
|
if (r7 == 0) goto L18
|
|
if (r6 >= 0) goto L1a
|
|
if (r6 != r0) goto L2d
|
|
if (r4 == r1) goto L1e
|
|
if (r4 == 0) goto L2d
|
|
if (r4 == r2) goto L1e
|
|
goto L2d
|
|
L18:
|
|
if (r6 < 0) goto L1c
|
|
L1a:
|
|
r4 = r2
|
|
goto L2f
|
|
L1c:
|
|
if (r6 != r0) goto L20
|
|
L1e:
|
|
r6 = r3
|
|
goto L2f
|
|
L20:
|
|
r7 = -2
|
|
if (r6 != r7) goto L2d
|
|
if (r4 == r1) goto L2a
|
|
if (r4 == r2) goto L2a
|
|
r6 = r3
|
|
r4 = r5
|
|
goto L2f
|
|
L2a:
|
|
r6 = r3
|
|
r4 = r1
|
|
goto L2f
|
|
L2d:
|
|
r4 = r5
|
|
r6 = r4
|
|
L2f:
|
|
int r3 = android.view.View.MeasureSpec.makeMeasureSpec(r6, r4)
|
|
return r3
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.RecyclerView.tOB.d(int, int, int, int, boolean):int");
|
|
}
|
|
|
|
public static int i(View view) {
|
|
Rect rect = ((saX) view.getLayoutParams()).d;
|
|
return view.getMeasuredWidth() + rect.left + rect.right;
|
|
}
|
|
|
|
public static int g(View view) {
|
|
Rect rect = ((saX) view.getLayoutParams()).d;
|
|
return view.getMeasuredHeight() + rect.top + rect.bottom;
|
|
}
|
|
|
|
public static void b(View view, int i, int i2, int i3, int i4) {
|
|
saX sax = (saX) view.getLayoutParams();
|
|
Rect rect = sax.d;
|
|
view.layout(i + rect.left + ((ViewGroup.MarginLayoutParams) sax).leftMargin, i2 + rect.top + ((ViewGroup.MarginLayoutParams) sax).topMargin, (i3 - rect.right) - ((ViewGroup.MarginLayoutParams) sax).rightMargin, (i4 - rect.bottom) - ((ViewGroup.MarginLayoutParams) sax).bottomMargin);
|
|
}
|
|
|
|
public final void Am_(View view, Rect rect) {
|
|
Matrix matrix;
|
|
Rect rect2 = ((saX) view.getLayoutParams()).d;
|
|
rect.set(-rect2.left, -rect2.top, view.getWidth() + rect2.right, view.getHeight() + rect2.bottom);
|
|
if (this.s != null && (matrix = view.getMatrix()) != null && !matrix.isIdentity()) {
|
|
RectF rectF = this.s.W;
|
|
rectF.set(rect);
|
|
matrix.mapRect(rectF);
|
|
rect.set((int) Math.floor(rectF.left), (int) Math.floor(rectF.top), (int) Math.ceil(rectF.right), (int) Math.ceil(rectF.bottom));
|
|
}
|
|
rect.offset(view.getLeft(), view.getTop());
|
|
}
|
|
|
|
public void It_(View view, Rect rect) {
|
|
RecyclerView.zY_(view, rect);
|
|
}
|
|
|
|
public static int m(View view) {
|
|
return ((saX) view.getLayoutParams()).d.top;
|
|
}
|
|
|
|
public static int b(View view) {
|
|
return ((saX) view.getLayoutParams()).d.bottom;
|
|
}
|
|
|
|
public static int h(View view) {
|
|
return ((saX) view.getLayoutParams()).d.left;
|
|
}
|
|
|
|
public static int j(View view) {
|
|
return ((saX) view.getLayoutParams()).d.right;
|
|
}
|
|
|
|
public void a(RecyclerView recyclerView, int i, int i2, Object obj) {
|
|
b(recyclerView, i, i2);
|
|
}
|
|
|
|
final void q() {
|
|
CeN ceN = this.u;
|
|
if (ceN != null) {
|
|
ceN.c();
|
|
}
|
|
}
|
|
|
|
public final void c(huo huoVar) {
|
|
for (int i_ = i_() - 1; i_ >= 0; i_--) {
|
|
if (!RecyclerView.c(f(i_)).shouldIgnore()) {
|
|
View f = f(i_);
|
|
if (f(i_) != null) {
|
|
this.k.e(i_);
|
|
}
|
|
huoVar.c(f);
|
|
}
|
|
}
|
|
}
|
|
|
|
public void a(huo huoVar, AcL acL, AccessibilityNodeInfoCompat accessibilityNodeInfoCompat) {
|
|
if (this.s.canScrollVertically(-1) || this.s.canScrollHorizontally(-1)) {
|
|
accessibilityNodeInfoCompat.d(8192);
|
|
accessibilityNodeInfoCompat.n(true);
|
|
}
|
|
if (this.s.canScrollVertically(1) || this.s.canScrollHorizontally(1)) {
|
|
accessibilityNodeInfoCompat.d(4096);
|
|
accessibilityNodeInfoCompat.n(true);
|
|
}
|
|
accessibilityNodeInfoCompat.e(AccessibilityNodeInfoCompat.CollectionInfoCompat.e(d(huoVar, acL), a(huoVar, acL), false, 0));
|
|
}
|
|
|
|
public void Iu_(AccessibilityEvent accessibilityEvent) {
|
|
huo huoVar = this.s.M;
|
|
AcL acL = this.s.R;
|
|
RecyclerView recyclerView = this.s;
|
|
if (recyclerView == null || accessibilityEvent == null) {
|
|
return;
|
|
}
|
|
boolean z = true;
|
|
if (!recyclerView.canScrollVertically(1) && !this.s.canScrollVertically(-1) && !this.s.canScrollHorizontally(-1) && !this.s.canScrollHorizontally(1)) {
|
|
z = false;
|
|
}
|
|
accessibilityEvent.setScrollable(z);
|
|
if (this.s.g != null) {
|
|
accessibilityEvent.setItemCount(this.s.g.getItemCount());
|
|
}
|
|
}
|
|
|
|
public final void d(View view, AccessibilityNodeInfoCompat accessibilityNodeInfoCompat) {
|
|
zJl c = RecyclerView.c(view);
|
|
if (c == null || c.isRemoved()) {
|
|
return;
|
|
}
|
|
Emo emo = this.k;
|
|
if (emo.b.contains(c.itemView)) {
|
|
return;
|
|
}
|
|
b(this.s.M, this.s.R, view, accessibilityNodeInfoCompat);
|
|
}
|
|
|
|
public boolean Cn_(huo huoVar, AcL acL, int i, Bundle bundle) {
|
|
int paddingTop;
|
|
int paddingLeft;
|
|
RecyclerView recyclerView = this.s;
|
|
if (recyclerView == null) {
|
|
return false;
|
|
}
|
|
if (i == 4096) {
|
|
paddingTop = recyclerView.canScrollVertically(1) ? (this.l - getPaddingTop()) - getPaddingBottom() : 0;
|
|
if (this.s.canScrollHorizontally(1)) {
|
|
paddingLeft = (this.w - getPaddingLeft()) - getPaddingRight();
|
|
}
|
|
paddingLeft = 0;
|
|
} else if (i != 8192) {
|
|
paddingTop = 0;
|
|
paddingLeft = 0;
|
|
} else {
|
|
paddingTop = recyclerView.canScrollVertically(-1) ? -((this.l - getPaddingTop()) - getPaddingBottom()) : 0;
|
|
if (this.s.canScrollHorizontally(-1)) {
|
|
paddingLeft = -((this.w - getPaddingLeft()) - getPaddingRight());
|
|
}
|
|
paddingLeft = 0;
|
|
}
|
|
if (paddingTop == 0 && paddingLeft == 0) {
|
|
return false;
|
|
}
|
|
this.s.c(paddingLeft, paddingTop, true);
|
|
return true;
|
|
}
|
|
|
|
public static IeS Ai_(Context context, AttributeSet attributeSet, int i, int i2) {
|
|
IeS ieS = new IeS();
|
|
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, nxk.HBt.RecyclerView, i, i2);
|
|
ieS.a = obtainStyledAttributes.getInt(nxk.HBt.RecyclerView_android_orientation, 1);
|
|
ieS.d = obtainStyledAttributes.getInt(nxk.HBt.RecyclerView_spanCount, 1);
|
|
ieS.c = obtainStyledAttributes.getBoolean(nxk.HBt.RecyclerView_reverseLayout, false);
|
|
ieS.b = obtainStyledAttributes.getBoolean(nxk.HBt.RecyclerView_stackFromEnd, false);
|
|
obtainStyledAttributes.recycle();
|
|
return ieS;
|
|
}
|
|
|
|
public final void e(View view) {
|
|
c(view, -1, true);
|
|
}
|
|
|
|
public final void a_(View view) {
|
|
c(view, -1, false);
|
|
}
|
|
|
|
public final int r() {
|
|
RecyclerView recyclerView = this.s;
|
|
Sts sts = recyclerView != null ? recyclerView.g : null;
|
|
if (sts != null) {
|
|
return sts.getItemCount();
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public final void b(CeN ceN) {
|
|
CeN ceN2 = this.u;
|
|
if (ceN2 != null && ceN != ceN2 && ceN2.h) {
|
|
this.u.c();
|
|
}
|
|
this.u = ceN;
|
|
RecyclerView recyclerView = this.s;
|
|
SYO syo = recyclerView.V;
|
|
syo.g.removeCallbacks(syo);
|
|
syo.e.abortAnimation();
|
|
boolean z = ceN.j;
|
|
ceN.i = recyclerView;
|
|
ceN.e = this;
|
|
if (ceN.f == -1) {
|
|
throw new IllegalArgumentException("Invalid target position");
|
|
}
|
|
recyclerView.R.l = ceN.f;
|
|
ceN.h = true;
|
|
ceN.c = true;
|
|
ceN.g = ceN.i.x.a_(ceN.f);
|
|
SYO syo2 = ceN.i.V;
|
|
if (syo2.b) {
|
|
syo2.h = true;
|
|
} else {
|
|
syo2.g.removeCallbacks(syo2);
|
|
ViewCompat.e(syo2.g, syo2);
|
|
}
|
|
ceN.j = true;
|
|
}
|
|
|
|
public final View f(int i) {
|
|
Emo emo = this.k;
|
|
if (emo == null) {
|
|
return null;
|
|
}
|
|
return emo.d.e(emo.a(i));
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:17:0x00a9, code lost:
|
|
|
|
if ((r10.bottom - r14) > r4) goto L22;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public boolean Iv_(androidx.recyclerview.widget.RecyclerView r16, android.view.View r17, android.graphics.Rect r18, boolean r19, boolean r20) {
|
|
/*
|
|
r15 = this;
|
|
r0 = r15
|
|
r1 = r16
|
|
r2 = r18
|
|
int r3 = r15.getPaddingLeft()
|
|
int r4 = r15.getPaddingTop()
|
|
int r5 = r0.w
|
|
int r6 = r15.getPaddingRight()
|
|
int r7 = r0.l
|
|
int r8 = r15.getPaddingBottom()
|
|
int r9 = r17.getLeft()
|
|
int r10 = r2.left
|
|
int r9 = r9 + r10
|
|
int r10 = r17.getScrollX()
|
|
int r9 = r9 - r10
|
|
int r10 = r17.getTop()
|
|
int r11 = r2.top
|
|
int r10 = r10 + r11
|
|
int r11 = r17.getScrollY()
|
|
int r10 = r10 - r11
|
|
int r11 = r18.width()
|
|
int r2 = r18.height()
|
|
int r3 = r9 - r3
|
|
r12 = 0
|
|
int r13 = java.lang.Math.min(r12, r3)
|
|
int r4 = r10 - r4
|
|
int r14 = java.lang.Math.min(r12, r4)
|
|
int r11 = r11 + r9
|
|
int r5 = r5 - r6
|
|
int r11 = r11 - r5
|
|
int r5 = java.lang.Math.max(r12, r11)
|
|
int r2 = r2 + r10
|
|
int r7 = r7 - r8
|
|
int r2 = r2 - r7
|
|
int r2 = java.lang.Math.max(r12, r2)
|
|
androidx.recyclerview.widget.RecyclerView r6 = r0.s
|
|
int r6 = androidx.core.view.ViewCompat.m(r6)
|
|
r7 = 1
|
|
if (r6 != r7) goto L66
|
|
if (r5 == 0) goto L61
|
|
r13 = r5
|
|
goto L6c
|
|
L61:
|
|
int r13 = java.lang.Math.max(r13, r11)
|
|
goto L6c
|
|
L66:
|
|
if (r13 != 0) goto L6c
|
|
int r13 = java.lang.Math.min(r3, r5)
|
|
L6c:
|
|
if (r14 != 0) goto L72
|
|
int r14 = java.lang.Math.min(r4, r2)
|
|
L72:
|
|
if (r20 == 0) goto Lab
|
|
android.view.View r2 = r16.getFocusedChild()
|
|
if (r2 == 0) goto Laf
|
|
int r3 = r15.getPaddingLeft()
|
|
int r4 = r15.getPaddingTop()
|
|
int r5 = r0.w
|
|
int r6 = r15.getPaddingRight()
|
|
int r8 = r0.l
|
|
int r9 = r15.getPaddingBottom()
|
|
androidx.recyclerview.widget.RecyclerView r10 = r0.s
|
|
android.graphics.Rect r10 = r10.Q
|
|
r15.It_(r2, r10)
|
|
int r2 = r10.left
|
|
int r2 = r2 - r13
|
|
int r5 = r5 - r6
|
|
if (r2 >= r5) goto Laf
|
|
int r2 = r10.right
|
|
int r2 = r2 - r13
|
|
if (r2 <= r3) goto Laf
|
|
int r2 = r10.top
|
|
int r2 = r2 - r14
|
|
int r8 = r8 - r9
|
|
if (r2 >= r8) goto Laf
|
|
int r2 = r10.bottom
|
|
int r2 = r2 - r14
|
|
if (r2 <= r4) goto Laf
|
|
Lab:
|
|
if (r13 != 0) goto Lb0
|
|
if (r14 != 0) goto Lb0
|
|
Laf:
|
|
return r12
|
|
Lb0:
|
|
if (r19 == 0) goto Lb6
|
|
r1.scrollBy(r13, r14)
|
|
goto Lb9
|
|
Lb6:
|
|
r1.c(r13, r14, r12)
|
|
Lb9:
|
|
return r7
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.RecyclerView.tOB.Iv_(androidx.recyclerview.widget.RecyclerView, android.view.View, android.graphics.Rect, boolean, boolean):boolean");
|
|
}
|
|
|
|
public final boolean p() {
|
|
return this.d;
|
|
}
|
|
|
|
public boolean k_() {
|
|
return this.n;
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static abstract class ZqN {
|
|
public void NS_(Canvas canvas, RecyclerView recyclerView, AcL acL) {
|
|
}
|
|
|
|
public void apA_(Canvas canvas, RecyclerView recyclerView) {
|
|
}
|
|
|
|
public void apG_(Rect rect, View view, RecyclerView recyclerView, AcL acL) {
|
|
((saX) view.getLayoutParams()).g.getLayoutPosition();
|
|
rect.set(0, 0, 0, 0);
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static abstract class zJl {
|
|
static final int FLAG_ADAPTER_FULLUPDATE = 1024;
|
|
static final int FLAG_ADAPTER_POSITION_UNKNOWN = 512;
|
|
static final int FLAG_APPEARED_IN_PRE_LAYOUT = 4096;
|
|
static final int FLAG_BOUNCED_FROM_HIDDEN_LIST = 8192;
|
|
static final int FLAG_BOUND = 1;
|
|
static final int FLAG_IGNORE = 128;
|
|
static final int FLAG_INVALID = 4;
|
|
static final int FLAG_MOVED = 2048;
|
|
static final int FLAG_NOT_RECYCLABLE = 16;
|
|
static final int FLAG_REMOVED = 8;
|
|
static final int FLAG_RETURNED_FROM_SCRAP = 32;
|
|
static final int FLAG_TMP_DETACHED = 256;
|
|
static final int FLAG_UPDATE = 2;
|
|
private static final List<Object> FULLUPDATE_PAYLOADS = Collections.emptyList();
|
|
static final int PENDING_ACCESSIBILITY_STATE_NOT_SET = -1;
|
|
public final View itemView;
|
|
Sts<? extends zJl> mBindingAdapter;
|
|
int mFlags;
|
|
public WeakReference<RecyclerView> mNestedRecyclerView;
|
|
RecyclerView mOwnerRecyclerView;
|
|
public int mPosition = -1;
|
|
int mOldPosition = -1;
|
|
long mItemId = -1;
|
|
int mItemViewType = -1;
|
|
int mPreLayoutPosition = -1;
|
|
zJl mShadowedHolder = null;
|
|
zJl mShadowingHolder = null;
|
|
List<Object> mPayloads = null;
|
|
List<Object> mUnmodifiedPayloads = null;
|
|
private int mIsRecyclableCount = 0;
|
|
huo mScrapContainer = null;
|
|
boolean mInChangeScrap = false;
|
|
private int mWasImportantForAccessibilityBeforeHidden = 0;
|
|
int mPendingAccessibilityState = -1;
|
|
|
|
public zJl(View view) {
|
|
if (view == null) {
|
|
throw new IllegalArgumentException("itemView may not be null");
|
|
}
|
|
this.itemView = view;
|
|
}
|
|
|
|
void flagRemovedAndOffsetPosition(int i, int i2, boolean z) {
|
|
addFlags(8);
|
|
offsetPosition(i2, z);
|
|
this.mPosition = i;
|
|
}
|
|
|
|
void offsetPosition(int i, boolean z) {
|
|
if (this.mOldPosition == -1) {
|
|
this.mOldPosition = this.mPosition;
|
|
}
|
|
if (this.mPreLayoutPosition == -1) {
|
|
this.mPreLayoutPosition = this.mPosition;
|
|
}
|
|
if (z) {
|
|
this.mPreLayoutPosition += i;
|
|
}
|
|
this.mPosition += i;
|
|
if (this.itemView.getLayoutParams() != null) {
|
|
((saX) this.itemView.getLayoutParams()).b = true;
|
|
}
|
|
}
|
|
|
|
@Deprecated
|
|
public final int getAdapterPosition() {
|
|
return getBindingAdapterPosition();
|
|
}
|
|
|
|
void unScrap() {
|
|
this.mScrapContainer.e(this);
|
|
}
|
|
|
|
boolean isAttachedToTransitionOverlay() {
|
|
return (this.itemView.getParent() == null || this.itemView.getParent() == this.mOwnerRecyclerView) ? false : true;
|
|
}
|
|
|
|
boolean isAdapterPositionUnknown() {
|
|
return (this.mFlags & 512) != 0 || isInvalid();
|
|
}
|
|
|
|
void addChangePayload(Object obj) {
|
|
if (obj == null) {
|
|
addFlags(1024);
|
|
} else if ((1024 & this.mFlags) == 0) {
|
|
createPayloadsIfNeeded();
|
|
this.mPayloads.add(obj);
|
|
}
|
|
}
|
|
|
|
private void createPayloadsIfNeeded() {
|
|
if (this.mPayloads == null) {
|
|
ArrayList arrayList = new ArrayList();
|
|
this.mPayloads = arrayList;
|
|
this.mUnmodifiedPayloads = Collections.unmodifiableList(arrayList);
|
|
}
|
|
}
|
|
|
|
void clearPayload() {
|
|
List<Object> list = this.mPayloads;
|
|
if (list != null) {
|
|
list.clear();
|
|
}
|
|
this.mFlags &= -1025;
|
|
}
|
|
|
|
List<Object> getUnmodifiedPayloads() {
|
|
if ((this.mFlags & 1024) != 0) {
|
|
return FULLUPDATE_PAYLOADS;
|
|
}
|
|
List<Object> list = this.mPayloads;
|
|
return (list == null || list.size() == 0) ? FULLUPDATE_PAYLOADS : this.mUnmodifiedPayloads;
|
|
}
|
|
|
|
void resetInternal() {
|
|
this.mFlags = 0;
|
|
this.mPosition = -1;
|
|
this.mOldPosition = -1;
|
|
this.mItemId = -1L;
|
|
this.mPreLayoutPosition = -1;
|
|
this.mIsRecyclableCount = 0;
|
|
this.mShadowedHolder = null;
|
|
this.mShadowingHolder = null;
|
|
clearPayload();
|
|
this.mWasImportantForAccessibilityBeforeHidden = 0;
|
|
this.mPendingAccessibilityState = -1;
|
|
RecyclerView.e(this);
|
|
}
|
|
|
|
void onEnteredHiddenState(RecyclerView recyclerView) {
|
|
int i = this.mPendingAccessibilityState;
|
|
if (i != -1) {
|
|
this.mWasImportantForAccessibilityBeforeHidden = i;
|
|
} else {
|
|
this.mWasImportantForAccessibilityBeforeHidden = ViewCompat.n(this.itemView);
|
|
}
|
|
recyclerView.e(this, 4);
|
|
}
|
|
|
|
void onLeftHiddenState(RecyclerView recyclerView) {
|
|
recyclerView.e(this, this.mWasImportantForAccessibilityBeforeHidden);
|
|
this.mWasImportantForAccessibilityBeforeHidden = 0;
|
|
}
|
|
|
|
public String toString() {
|
|
String simpleName = getClass().isAnonymousClass() ? "ViewHolder" : getClass().getSimpleName();
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(simpleName);
|
|
sb.append(UrlTreeKt.componentParamPrefix);
|
|
sb.append(Integer.toHexString(hashCode()));
|
|
sb.append(" position=");
|
|
sb.append(this.mPosition);
|
|
sb.append(" id=");
|
|
sb.append(this.mItemId);
|
|
sb.append(", oldPos=");
|
|
sb.append(this.mOldPosition);
|
|
sb.append(", pLpos:");
|
|
sb.append(this.mPreLayoutPosition);
|
|
StringBuilder sb2 = new StringBuilder(sb.toString());
|
|
if (isScrap()) {
|
|
sb2.append(" scrap ");
|
|
sb2.append(this.mInChangeScrap ? "[changeScrap]" : "[attachedScrap]");
|
|
}
|
|
if (isInvalid()) {
|
|
sb2.append(" invalid");
|
|
}
|
|
if (!isBound()) {
|
|
sb2.append(" unbound");
|
|
}
|
|
if (needsUpdate()) {
|
|
sb2.append(" update");
|
|
}
|
|
if (isRemoved()) {
|
|
sb2.append(" removed");
|
|
}
|
|
if (shouldIgnore()) {
|
|
sb2.append(" ignored");
|
|
}
|
|
if (isTmpDetached()) {
|
|
sb2.append(" tmpDetached");
|
|
}
|
|
if (!isRecyclable()) {
|
|
StringBuilder sb3 = new StringBuilder(" not recyclable(");
|
|
sb3.append(this.mIsRecyclableCount);
|
|
sb3.append(")");
|
|
sb2.append(sb3.toString());
|
|
}
|
|
if (isAdapterPositionUnknown()) {
|
|
sb2.append(" undefined adapter position");
|
|
}
|
|
if (this.itemView.getParent() == null) {
|
|
sb2.append(" no parent");
|
|
}
|
|
sb2.append(UrlTreeKt.componentParamSuffix);
|
|
return sb2.toString();
|
|
}
|
|
|
|
public final void setIsRecyclable(boolean z) {
|
|
int i = this.mIsRecyclableCount;
|
|
int i2 = z ? i - 1 : i + 1;
|
|
this.mIsRecyclableCount = i2;
|
|
if (i2 < 0) {
|
|
this.mIsRecyclableCount = 0;
|
|
return;
|
|
}
|
|
if (!z && i2 == 1) {
|
|
this.mFlags |= 16;
|
|
} else if (z && i2 == 0) {
|
|
this.mFlags &= -17;
|
|
}
|
|
}
|
|
|
|
public final boolean isRecyclable() {
|
|
return (this.mFlags & 16) == 0 && !ViewCompat.z(this.itemView);
|
|
}
|
|
|
|
boolean doesTransientStatePreventRecycling() {
|
|
return (this.mFlags & 16) == 0 && ViewCompat.z(this.itemView);
|
|
}
|
|
|
|
public final int getBindingAdapterPosition() {
|
|
RecyclerView recyclerView;
|
|
Sts sts;
|
|
if (this.mBindingAdapter == null || (recyclerView = this.mOwnerRecyclerView) == null || (sts = recyclerView.g) == null) {
|
|
return -1;
|
|
}
|
|
int a = (hasAnyOfTheFlags(524) || !isBound()) ? -1 : this.mOwnerRecyclerView.j.a(this.mPosition);
|
|
if (a == -1) {
|
|
return -1;
|
|
}
|
|
return sts.findRelativeAdapterPositionIn(this.mBindingAdapter, this, a);
|
|
}
|
|
|
|
public final int getAbsoluteAdapterPosition() {
|
|
RecyclerView recyclerView = this.mOwnerRecyclerView;
|
|
if (recyclerView == null || hasAnyOfTheFlags(524) || !isBound()) {
|
|
return -1;
|
|
}
|
|
return recyclerView.j.a(this.mPosition);
|
|
}
|
|
|
|
boolean wasReturnedFromScrap() {
|
|
return (this.mFlags & 32) != 0;
|
|
}
|
|
|
|
void stopIgnoring() {
|
|
this.mFlags &= -129;
|
|
}
|
|
|
|
public boolean shouldIgnore() {
|
|
return (this.mFlags & 128) != 0;
|
|
}
|
|
|
|
boolean shouldBeKeptAsChild() {
|
|
return (this.mFlags & 16) != 0;
|
|
}
|
|
|
|
void setScrapContainer(huo huoVar, boolean z) {
|
|
this.mScrapContainer = huoVar;
|
|
this.mInChangeScrap = z;
|
|
}
|
|
|
|
void setFlags(int i, int i2) {
|
|
this.mFlags = (i & i2) | ((~i2) & this.mFlags);
|
|
}
|
|
|
|
void saveOldPosition() {
|
|
if (this.mOldPosition == -1) {
|
|
this.mOldPosition = this.mPosition;
|
|
}
|
|
}
|
|
|
|
boolean needsUpdate() {
|
|
return (this.mFlags & 2) != 0;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public boolean isUpdated() {
|
|
return (this.mFlags & 2) != 0;
|
|
}
|
|
|
|
boolean isTmpDetached() {
|
|
return (this.mFlags & 256) != 0;
|
|
}
|
|
|
|
boolean isScrap() {
|
|
return this.mScrapContainer != null;
|
|
}
|
|
|
|
public boolean isRemoved() {
|
|
return (this.mFlags & 8) != 0;
|
|
}
|
|
|
|
public boolean isInvalid() {
|
|
return (this.mFlags & 4) != 0;
|
|
}
|
|
|
|
public boolean isBound() {
|
|
return (this.mFlags & 1) != 0;
|
|
}
|
|
|
|
boolean hasAnyOfTheFlags(int i) {
|
|
return (i & this.mFlags) != 0;
|
|
}
|
|
|
|
@Deprecated
|
|
public final int getPosition() {
|
|
int i = this.mPreLayoutPosition;
|
|
return i == -1 ? this.mPosition : i;
|
|
}
|
|
|
|
public final int getOldPosition() {
|
|
return this.mOldPosition;
|
|
}
|
|
|
|
public final int getLayoutPosition() {
|
|
int i = this.mPreLayoutPosition;
|
|
return i == -1 ? this.mPosition : i;
|
|
}
|
|
|
|
public final int getItemViewType() {
|
|
return this.mItemViewType;
|
|
}
|
|
|
|
public final long getItemId() {
|
|
return this.mItemId;
|
|
}
|
|
|
|
public final Sts<? extends zJl> getBindingAdapter() {
|
|
return this.mBindingAdapter;
|
|
}
|
|
|
|
void clearTmpDetachFlag() {
|
|
this.mFlags &= -257;
|
|
}
|
|
|
|
void clearReturnedFromScrapFlag() {
|
|
this.mFlags &= -33;
|
|
}
|
|
|
|
void clearOldPosition() {
|
|
this.mOldPosition = -1;
|
|
this.mPreLayoutPosition = -1;
|
|
}
|
|
|
|
void addFlags(int i) {
|
|
this.mFlags = i | this.mFlags;
|
|
}
|
|
}
|
|
|
|
private void s() {
|
|
int i;
|
|
for (int size = this.G.size() - 1; size >= 0; size--) {
|
|
zJl zjl = this.G.get(size);
|
|
if (zjl.itemView.getParent() == this && !zjl.shouldIgnore() && (i = zjl.mPendingAccessibilityState) != -1) {
|
|
ViewCompat.g(zjl.itemView, i);
|
|
zjl.mPendingAccessibilityState = -1;
|
|
}
|
|
}
|
|
this.G.clear();
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void setNestedScrollingEnabled(boolean z) {
|
|
if (this.P == null) {
|
|
this.P = new FgG(this);
|
|
}
|
|
FgG fgG = this.P;
|
|
if (fgG.c) {
|
|
ViewCompat.K(fgG.d);
|
|
}
|
|
fgG.c = z;
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public boolean isNestedScrollingEnabled() {
|
|
if (this.P == null) {
|
|
this.P = new FgG(this);
|
|
}
|
|
return this.P.c;
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public boolean startNestedScroll(int i) {
|
|
if (this.P == null) {
|
|
this.P = new FgG(this);
|
|
}
|
|
return this.P.a(i, 0);
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void stopNestedScroll() {
|
|
if (this.P == null) {
|
|
this.P = new FgG(this);
|
|
}
|
|
FgG fgG = this.P;
|
|
ViewParent viewParent = fgG.a;
|
|
if (viewParent != null) {
|
|
C16515owF.tg_(viewParent, fgG.d, 0);
|
|
fgG.a = null;
|
|
}
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public boolean hasNestedScrollingParent() {
|
|
if (this.P == null) {
|
|
this.P = new FgG(this);
|
|
}
|
|
return this.P.a != null;
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public boolean dispatchNestedScroll(int i, int i2, int i3, int i4, int[] iArr) {
|
|
if (this.P == null) {
|
|
this.P = new FgG(this);
|
|
}
|
|
return this.P.c(i, i2, i3, i4, iArr, 0, null);
|
|
}
|
|
|
|
public final void d(int i, int i2, int i3, int i4, int[] iArr, int i5, int[] iArr2) {
|
|
if (this.P == null) {
|
|
this.P = new FgG(this);
|
|
}
|
|
this.P.c(i, i2, i3, i4, iArr, i5, iArr2);
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public boolean dispatchNestedPreScroll(int i, int i2, int[] iArr, int[] iArr2) {
|
|
if (this.P == null) {
|
|
this.P = new FgG(this);
|
|
}
|
|
return this.P.a(i, i2, iArr, iArr2, 0);
|
|
}
|
|
|
|
public final boolean c(int i, int i2, int[] iArr, int[] iArr2, int i3) {
|
|
if (this.P == null) {
|
|
this.P = new FgG(this);
|
|
}
|
|
return this.P.a(i, i2, iArr, iArr2, i3);
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public boolean dispatchNestedFling(float f, float f2, boolean z) {
|
|
if (this.P == null) {
|
|
this.P = new FgG(this);
|
|
}
|
|
return this.P.d(f, f2, z);
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public boolean dispatchNestedPreFling(float f, float f2) {
|
|
if (this.P == null) {
|
|
this.P = new FgG(this);
|
|
}
|
|
return this.P.b(f, f2);
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static class saX extends ViewGroup.MarginLayoutParams {
|
|
boolean b;
|
|
public final Rect d;
|
|
boolean e;
|
|
public zJl g;
|
|
|
|
public saX(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
this.d = new Rect();
|
|
this.b = true;
|
|
this.e = false;
|
|
}
|
|
|
|
public saX(int i, int i2) {
|
|
super(i, i2);
|
|
this.d = new Rect();
|
|
this.b = true;
|
|
this.e = false;
|
|
}
|
|
|
|
public saX(ViewGroup.MarginLayoutParams marginLayoutParams) {
|
|
super(marginLayoutParams);
|
|
this.d = new Rect();
|
|
this.b = true;
|
|
this.e = false;
|
|
}
|
|
|
|
public saX(ViewGroup.LayoutParams layoutParams) {
|
|
super(layoutParams);
|
|
this.d = new Rect();
|
|
this.b = true;
|
|
this.e = false;
|
|
}
|
|
|
|
public saX(saX sax) {
|
|
super((ViewGroup.LayoutParams) sax);
|
|
this.d = new Rect();
|
|
this.b = true;
|
|
this.e = false;
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static abstract class LWm {
|
|
public void a(int i, int i2) {
|
|
}
|
|
|
|
public void b(int i, int i2) {
|
|
}
|
|
|
|
public void c() {
|
|
}
|
|
|
|
public void c(int i, int i2) {
|
|
}
|
|
|
|
public void d() {
|
|
}
|
|
|
|
public void d(int i, int i2) {
|
|
}
|
|
|
|
public void c(int i, int i2, Object obj) {
|
|
c(i, i2);
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static abstract class CeN {
|
|
boolean c;
|
|
public tOB e;
|
|
View g;
|
|
boolean h;
|
|
public RecyclerView i;
|
|
boolean j;
|
|
public int f = -1;
|
|
private final IeS d = new IeS((byte) 0);
|
|
|
|
/* loaded from: classes.dex */
|
|
public interface RVV {
|
|
PointF Hy_(int i);
|
|
}
|
|
|
|
protected abstract void b(View view, AcL acL, IeS ieS);
|
|
|
|
protected abstract void d();
|
|
|
|
protected abstract void d(int i, int i2, IeS ieS);
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public final void c() {
|
|
if (this.h) {
|
|
this.h = false;
|
|
d();
|
|
this.i.R.l = -1;
|
|
this.g = null;
|
|
this.f = -1;
|
|
this.c = false;
|
|
tOB tob = this.e;
|
|
if (tob.u == this) {
|
|
tob.u = null;
|
|
}
|
|
this.e = null;
|
|
this.i = null;
|
|
}
|
|
}
|
|
|
|
final void a(int i, int i2) {
|
|
PointF Iw_;
|
|
RecyclerView recyclerView = this.i;
|
|
if (this.f == -1 || recyclerView == null) {
|
|
c();
|
|
}
|
|
if (this.c && this.g == null && this.e != null && (Iw_ = Iw_(this.f)) != null && (Iw_.x != BitmapDescriptorFactory.HUE_RED || Iw_.y != BitmapDescriptorFactory.HUE_RED)) {
|
|
recyclerView.b((int) Math.signum(Iw_.x), (int) Math.signum(Iw_.y), (int[]) null);
|
|
}
|
|
this.c = false;
|
|
View view = this.g;
|
|
if (view != null) {
|
|
if (RecyclerView.f(view) == this.f) {
|
|
b(this.g, recyclerView.R, this.d);
|
|
this.d.b(recyclerView);
|
|
c();
|
|
} else {
|
|
this.g = null;
|
|
}
|
|
}
|
|
if (this.h) {
|
|
AcL acL = recyclerView.R;
|
|
d(i, i2, this.d);
|
|
boolean z = this.d.g >= 0;
|
|
this.d.b(recyclerView);
|
|
if (z && this.h) {
|
|
this.c = true;
|
|
SYO syo = recyclerView.V;
|
|
if (syo.b) {
|
|
syo.h = true;
|
|
} else {
|
|
syo.g.removeCallbacks(syo);
|
|
ViewCompat.e(syo.g, syo);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static class IeS {
|
|
public int a;
|
|
public boolean b;
|
|
public Interpolator c;
|
|
public int d;
|
|
public int e;
|
|
private int f;
|
|
public int g;
|
|
|
|
public IeS(byte b) {
|
|
this();
|
|
}
|
|
|
|
private IeS() {
|
|
this.g = -1;
|
|
this.b = false;
|
|
this.f = 0;
|
|
this.e = 0;
|
|
this.d = 0;
|
|
this.a = PKIFailureInfo.systemUnavail;
|
|
this.c = null;
|
|
}
|
|
|
|
final void b(RecyclerView recyclerView) {
|
|
int i = this.g;
|
|
if (i >= 0) {
|
|
this.g = -1;
|
|
recyclerView.b(i);
|
|
this.b = false;
|
|
} else {
|
|
if (!this.b) {
|
|
this.f = 0;
|
|
return;
|
|
}
|
|
e();
|
|
recyclerView.V.Ax_(this.e, this.d, this.a, this.c);
|
|
this.f++;
|
|
this.b = false;
|
|
}
|
|
}
|
|
|
|
private void e() {
|
|
if (this.c != null && this.a <= 0) {
|
|
throw new IllegalStateException("If you provide an interpolator, you must set a positive duration");
|
|
}
|
|
if (this.a <= 0) {
|
|
throw new IllegalStateException("Scroll duration must be a positive number");
|
|
}
|
|
}
|
|
}
|
|
|
|
public PointF Iw_(int i) {
|
|
Object obj = this.e;
|
|
if (obj instanceof RVV) {
|
|
return ((RVV) obj).Hy_(i);
|
|
}
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public static class HBt extends Observable<LWm> {
|
|
HBt() {
|
|
}
|
|
|
|
public final boolean a() {
|
|
return !((Observable) this).mObservers.isEmpty();
|
|
}
|
|
|
|
public final void b() {
|
|
for (int size = ((Observable) this).mObservers.size() - 1; size >= 0; size--) {
|
|
((LWm) ((Observable) this).mObservers.get(size)).c();
|
|
}
|
|
}
|
|
|
|
public final void e() {
|
|
for (int size = ((Observable) this).mObservers.size() - 1; size >= 0; size--) {
|
|
((LWm) ((Observable) this).mObservers.get(size)).d();
|
|
}
|
|
}
|
|
|
|
public final void a(int i, int i2) {
|
|
d(i, i2, null);
|
|
}
|
|
|
|
public final void d(int i, int i2, Object obj) {
|
|
for (int size = ((Observable) this).mObservers.size() - 1; size >= 0; size--) {
|
|
((LWm) ((Observable) this).mObservers.get(size)).c(i, i2, obj);
|
|
}
|
|
}
|
|
|
|
public final void e(int i, int i2) {
|
|
for (int size = ((Observable) this).mObservers.size() - 1; size >= 0; size--) {
|
|
((LWm) ((Observable) this).mObservers.get(size)).b(i, i2);
|
|
}
|
|
}
|
|
|
|
public final void d(int i, int i2) {
|
|
for (int size = ((Observable) this).mObservers.size() - 1; size >= 0; size--) {
|
|
((LWm) ((Observable) this).mObservers.get(size)).a(i, i2);
|
|
}
|
|
}
|
|
|
|
public final void c(int i, int i2) {
|
|
for (int size = ((Observable) this).mObservers.size() - 1; size >= 0; size--) {
|
|
((LWm) ((Observable) this).mObservers.get(size)).d(i, i2);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static class Plv extends XgG {
|
|
public static final Parcelable.Creator<Plv> CREATOR = new Parcelable.ClassLoaderCreator<Plv>() { // from class: androidx.recyclerview.widget.RecyclerView.Plv.2
|
|
@Override // android.os.Parcelable.Creator
|
|
public final /* synthetic */ Object createFromParcel(Parcel parcel) {
|
|
return new Plv(parcel, null);
|
|
}
|
|
|
|
@Override // android.os.Parcelable.ClassLoaderCreator
|
|
public final /* synthetic */ Plv createFromParcel(Parcel parcel, ClassLoader classLoader) {
|
|
return new Plv(parcel, classLoader);
|
|
}
|
|
|
|
@Override // android.os.Parcelable.Creator
|
|
public final /* bridge */ /* synthetic */ Object[] newArray(int i) {
|
|
return new Plv[i];
|
|
}
|
|
};
|
|
Parcelable d;
|
|
|
|
Plv(Parcel parcel, ClassLoader classLoader) {
|
|
super(parcel, classLoader);
|
|
this.d = parcel.readParcelable(classLoader == null ? tOB.class.getClassLoader() : classLoader);
|
|
}
|
|
|
|
Plv(Parcelable parcelable) {
|
|
super(parcelable);
|
|
}
|
|
|
|
@Override // o.XgG, android.os.Parcelable
|
|
public final void writeToParcel(Parcel parcel, int i) {
|
|
super.writeToParcel(parcel, i);
|
|
parcel.writeParcelable(this.d, 0);
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static class AcL {
|
|
long a;
|
|
int d;
|
|
int e;
|
|
int g;
|
|
int k;
|
|
private SparseArray<Object> s;
|
|
int l = -1;
|
|
public int i = 0;
|
|
public int b = 0;
|
|
public int j = 1;
|
|
public int h = 0;
|
|
boolean m = false;
|
|
public boolean c = false;
|
|
public boolean t = false;
|
|
public boolean f = false;
|
|
boolean n = false;
|
|
|
|
/* renamed from: o, reason: collision with root package name */
|
|
boolean f6395o = false;
|
|
|
|
final void b(int i) {
|
|
if ((this.j & i) != 0) {
|
|
return;
|
|
}
|
|
StringBuilder sb = new StringBuilder("Layout state should be one of ");
|
|
sb.append(Integer.toBinaryString(i));
|
|
sb.append(" but it is ");
|
|
sb.append(Integer.toBinaryString(this.j));
|
|
throw new IllegalStateException(sb.toString());
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder("State{mTargetPosition=");
|
|
sb.append(this.l);
|
|
sb.append(", mData=");
|
|
sb.append(this.s);
|
|
sb.append(", mItemCount=");
|
|
sb.append(this.h);
|
|
sb.append(", mIsMeasuring=");
|
|
sb.append(this.f);
|
|
sb.append(", mPreviousLayoutItemCount=");
|
|
sb.append(this.i);
|
|
sb.append(", mDeletedInvisibleItemCountSincePreviousLayout=");
|
|
sb.append(this.b);
|
|
sb.append(", mStructureChanged=");
|
|
sb.append(this.m);
|
|
sb.append(", mInPreLayout=");
|
|
sb.append(this.c);
|
|
sb.append(", mRunSimpleAnimations=");
|
|
sb.append(this.n);
|
|
sb.append(", mRunPredictiveAnimations=");
|
|
sb.append(this.f6395o);
|
|
sb.append(UrlTreeKt.componentParamSuffixChar);
|
|
return sb.toString();
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
class ojQ implements jbe.IeS {
|
|
final RecyclerView d;
|
|
|
|
ojQ(RecyclerView recyclerView) {
|
|
this.d = recyclerView;
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.jbe.IeS
|
|
public final void c(zJl zjl) {
|
|
boolean z = true;
|
|
zjl.setIsRecyclable(true);
|
|
if (zjl.mShadowedHolder != null && zjl.mShadowingHolder == null) {
|
|
zjl.mShadowedHolder = null;
|
|
}
|
|
zjl.mShadowingHolder = null;
|
|
if (zjl.shouldBeKeptAsChild()) {
|
|
return;
|
|
}
|
|
RecyclerView recyclerView = this.d;
|
|
View view = zjl.itemView;
|
|
int i = recyclerView.s + 1;
|
|
recyclerView.s = i;
|
|
if (i == 1 && !recyclerView.D) {
|
|
recyclerView.C = false;
|
|
}
|
|
Emo emo = recyclerView.n;
|
|
int a = emo.d.a(view);
|
|
if (a != -1) {
|
|
if (emo.e.d(a)) {
|
|
emo.e.a(a);
|
|
if (emo.b.remove(view)) {
|
|
emo.d.b(view);
|
|
}
|
|
emo.d.c(a);
|
|
} else {
|
|
z = false;
|
|
}
|
|
} else if (emo.b.remove(view)) {
|
|
emo.d.b(view);
|
|
}
|
|
if (z) {
|
|
zJl zjl2 = view != null ? ((saX) view.getLayoutParams()).g : null;
|
|
recyclerView.M.e(zjl2);
|
|
recyclerView.M.d(zjl2);
|
|
}
|
|
recyclerView.e(!z);
|
|
if (z || !zjl.isTmpDetached()) {
|
|
return;
|
|
}
|
|
this.d.removeDetachedView(zjl.itemView, false);
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static abstract class jbe {
|
|
public static final int FLAG_APPEARED_IN_PRE_LAYOUT = 4096;
|
|
public static final int FLAG_CHANGED = 2;
|
|
public static final int FLAG_INVALIDATED = 4;
|
|
public static final int FLAG_MOVED = 2048;
|
|
public static final int FLAG_REMOVED = 8;
|
|
private IeS mListener = null;
|
|
private ArrayList<LWm> mFinishedListeners = new ArrayList<>();
|
|
private long mAddDuration = 120;
|
|
private long mRemoveDuration = 120;
|
|
private long mMoveDuration = 250;
|
|
private long mChangeDuration = 250;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public interface IeS {
|
|
void c(zJl zjl);
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public interface LWm {
|
|
}
|
|
|
|
public abstract boolean animateAppearance(zJl zjl, Sts sts, Sts sts2);
|
|
|
|
public abstract boolean animateChange(zJl zjl, zJl zjl2, Sts sts, Sts sts2);
|
|
|
|
public abstract boolean animateDisappearance(zJl zjl, Sts sts, Sts sts2);
|
|
|
|
public abstract boolean animatePersistence(zJl zjl, Sts sts, Sts sts2);
|
|
|
|
public boolean canReuseUpdatedViewHolder(zJl zjl) {
|
|
return true;
|
|
}
|
|
|
|
public abstract void endAnimation(zJl zjl);
|
|
|
|
public abstract void endAnimations();
|
|
|
|
public abstract boolean isRunning();
|
|
|
|
public void onAnimationFinished(zJl zjl) {
|
|
}
|
|
|
|
public void onAnimationStarted(zJl zjl) {
|
|
}
|
|
|
|
public abstract void runPendingAnimations();
|
|
|
|
public Sts recordPreLayoutInformation(AcL acL, zJl zjl, int i, List<Object> list) {
|
|
return obtainHolderInfo().c(zjl);
|
|
}
|
|
|
|
public Sts recordPostLayoutInformation(AcL acL, zJl zjl) {
|
|
return obtainHolderInfo().c(zjl);
|
|
}
|
|
|
|
static int buildAdapterChangeFlagsForAnimations(zJl zjl) {
|
|
int i = zjl.mFlags;
|
|
int i2 = i & 14;
|
|
if (zjl.isInvalid()) {
|
|
return 4;
|
|
}
|
|
if ((i & 4) != 0) {
|
|
return i2;
|
|
}
|
|
int oldPosition = zjl.getOldPosition();
|
|
int absoluteAdapterPosition = zjl.getAbsoluteAdapterPosition();
|
|
return (oldPosition == -1 || absoluteAdapterPosition == -1 || oldPosition == absoluteAdapterPosition) ? i2 : i2 | 2048;
|
|
}
|
|
|
|
public final void dispatchAnimationFinished(zJl zjl) {
|
|
onAnimationFinished(zjl);
|
|
IeS ieS = this.mListener;
|
|
if (ieS != null) {
|
|
ieS.c(zjl);
|
|
}
|
|
}
|
|
|
|
public final void dispatchAnimationStarted(zJl zjl) {
|
|
onAnimationStarted(zjl);
|
|
}
|
|
|
|
public final boolean isRunning(LWm lWm) {
|
|
boolean isRunning = isRunning();
|
|
if (lWm != null && isRunning) {
|
|
this.mFinishedListeners.add(lWm);
|
|
}
|
|
return isRunning;
|
|
}
|
|
|
|
public boolean canReuseUpdatedViewHolder(zJl zjl, List<Object> list) {
|
|
return canReuseUpdatedViewHolder(zjl);
|
|
}
|
|
|
|
public final void dispatchAnimationsFinished() {
|
|
int size = this.mFinishedListeners.size();
|
|
for (int i = 0; i < size; i++) {
|
|
this.mFinishedListeners.get(i);
|
|
}
|
|
this.mFinishedListeners.clear();
|
|
}
|
|
|
|
public Sts obtainHolderInfo() {
|
|
return new Sts();
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static class Sts {
|
|
private int a;
|
|
private int b;
|
|
public int c;
|
|
public int d;
|
|
|
|
public final Sts c(zJl zjl) {
|
|
View view = zjl.itemView;
|
|
this.c = view.getLeft();
|
|
this.d = view.getTop();
|
|
this.b = view.getRight();
|
|
this.a = view.getBottom();
|
|
return this;
|
|
}
|
|
}
|
|
|
|
public void setRemoveDuration(long j) {
|
|
this.mRemoveDuration = j;
|
|
}
|
|
|
|
public void setMoveDuration(long j) {
|
|
this.mMoveDuration = j;
|
|
}
|
|
|
|
void setListener(IeS ieS) {
|
|
this.mListener = ieS;
|
|
}
|
|
|
|
public void setChangeDuration(long j) {
|
|
this.mChangeDuration = j;
|
|
}
|
|
|
|
public void setAddDuration(long j) {
|
|
this.mAddDuration = j;
|
|
}
|
|
|
|
public long getRemoveDuration() {
|
|
return this.mRemoveDuration;
|
|
}
|
|
|
|
public long getMoveDuration() {
|
|
return this.mMoveDuration;
|
|
}
|
|
|
|
public long getChangeDuration() {
|
|
return this.mChangeDuration;
|
|
}
|
|
|
|
public long getAddDuration() {
|
|
return this.mAddDuration;
|
|
}
|
|
}
|
|
|
|
@Override // android.view.ViewGroup
|
|
protected int getChildDrawingOrder(int i, int i2) {
|
|
RVV rvv = this.ag;
|
|
if (rvv == null) {
|
|
return super.getChildDrawingOrder(i, i2);
|
|
}
|
|
return rvv.d();
|
|
}
|
|
|
|
private void j() {
|
|
int i = this.s + 1;
|
|
this.s = i;
|
|
if (i == 1 && !this.D) {
|
|
this.C = false;
|
|
}
|
|
this.B++;
|
|
this.R.b(6);
|
|
this.j.e();
|
|
this.R.h = this.g.getItemCount();
|
|
this.R.b = 0;
|
|
if (this.F != null && this.g.canRestoreState()) {
|
|
if (this.F.d != null) {
|
|
this.x.HA_(this.F.d);
|
|
}
|
|
this.F = null;
|
|
}
|
|
this.R.c = false;
|
|
this.x.e(this.M, this.R);
|
|
this.R.m = false;
|
|
AcL acL = this.R;
|
|
acL.n = acL.n && this.t != null;
|
|
this.R.j = 4;
|
|
d(true);
|
|
e(false);
|
|
}
|
|
|
|
final void c(String str) {
|
|
if (this.B > 0) {
|
|
if (str == null) {
|
|
StringBuilder sb = new StringBuilder("Cannot call this method while RecyclerView is computing a layout or scrolling");
|
|
sb.append(e());
|
|
throw new IllegalStateException(sb.toString());
|
|
}
|
|
throw new IllegalStateException(str);
|
|
}
|
|
if (this.ah > 0) {
|
|
StringBuilder sb2 = new StringBuilder("");
|
|
sb2.append(e());
|
|
new IllegalStateException(sb2.toString());
|
|
}
|
|
}
|
|
|
|
private void c(AcL acL) {
|
|
if (this.O == 2) {
|
|
OverScroller overScroller = this.V.e;
|
|
acL.g = overScroller.getFinalX() - overScroller.getCurrX();
|
|
acL.k = overScroller.getFinalY() - overScroller.getCurrY();
|
|
} else {
|
|
acL.g = 0;
|
|
acL.k = 0;
|
|
}
|
|
}
|
|
|
|
@Override // android.view.ViewGroup
|
|
protected boolean onRequestFocusInDescendants(int i, Rect rect) {
|
|
if (this.B > 0) {
|
|
return false;
|
|
}
|
|
return super.onRequestFocusInDescendants(i, rect);
|
|
}
|
|
|
|
final void b(int i, int i2, int[] iArr) {
|
|
int i3 = this.s + 1;
|
|
this.s = i3;
|
|
if (i3 == 1 && !this.D) {
|
|
this.C = false;
|
|
}
|
|
this.B++;
|
|
Lfp.b("RV Scroll");
|
|
c(this.R);
|
|
int b2 = i != 0 ? this.x.b(i, this.M, this.R) : 0;
|
|
int c2 = i2 != 0 ? this.x.c(i2, this.M, this.R) : 0;
|
|
Lfp.c();
|
|
v();
|
|
d(true);
|
|
e(false);
|
|
if (iArr != null) {
|
|
iArr[0] = b2;
|
|
iArr[1] = c2;
|
|
}
|
|
}
|
|
|
|
@Override // android.view.View, android.view.accessibility.AccessibilityEventSource
|
|
public void sendAccessibilityEventUnchecked(AccessibilityEvent accessibilityEvent) {
|
|
if (this.B <= 0) {
|
|
super.sendAccessibilityEventUnchecked(accessibilityEvent);
|
|
} else {
|
|
int tL_ = accessibilityEvent != null ? KNl.tL_(accessibilityEvent) : 0;
|
|
this.ad |= tL_ != 0 ? tL_ : 0;
|
|
}
|
|
}
|
|
|
|
final boolean e(zJl zjl, int i) {
|
|
if (this.B > 0) {
|
|
zjl.mPendingAccessibilityState = i;
|
|
this.G.add(zjl);
|
|
return false;
|
|
}
|
|
ViewCompat.g(zjl.itemView, i);
|
|
return true;
|
|
}
|
|
|
|
@Override // android.view.ViewGroup
|
|
public void setClipToPadding(boolean z) {
|
|
if (z != this.m) {
|
|
this.ac = null;
|
|
this.aG = null;
|
|
this.ax = null;
|
|
this.au = null;
|
|
}
|
|
this.m = z;
|
|
super.setClipToPadding(z);
|
|
if (this.f6394o) {
|
|
requestLayout();
|
|
}
|
|
}
|
|
|
|
public void setViewCacheExtension(ehe eheVar) {
|
|
this.M.h = eheVar;
|
|
}
|
|
|
|
public final void d(int i) {
|
|
if (this.D) {
|
|
return;
|
|
}
|
|
if (this.O != 0) {
|
|
this.O = 0;
|
|
a();
|
|
c(0);
|
|
}
|
|
a();
|
|
tOB tob = this.x;
|
|
if (tob == null) {
|
|
return;
|
|
}
|
|
tob.b(i);
|
|
awakenScrollBars();
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:18:0x0062, code lost:
|
|
|
|
if (r1 != null) goto L20;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:19:0x0064, code lost:
|
|
|
|
r1.d = 0;
|
|
r1 = r1.e;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:20:0x0068, code lost:
|
|
|
|
if (r1 == null) goto L37;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:23:0x006b, code lost:
|
|
|
|
r1 = r0.b.size() - 1;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:24:0x0073, code lost:
|
|
|
|
if (r1 < 0) goto L39;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:25:0x0075, code lost:
|
|
|
|
r0.d.b(r0.b.get(r1));
|
|
r0.b.remove(r1);
|
|
r1 = r1 - 1;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:27:0x008a, code lost:
|
|
|
|
r0.d.e();
|
|
r5.x = r6;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:28:0x0091, code lost:
|
|
|
|
if (r6 == null) goto L35;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:30:0x0095, code lost:
|
|
|
|
if (r6.s != null) goto L33;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:31:0x0097, code lost:
|
|
|
|
r5.x.e(r5);
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:32:0x009e, code lost:
|
|
|
|
if (r5.q == false) goto L35;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:33:0x00a0, code lost:
|
|
|
|
r6 = r5.x;
|
|
r6.t = true;
|
|
r6.c(r5);
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:34:0x00a8, code lost:
|
|
|
|
r0 = new java.lang.StringBuilder("LayoutManager ");
|
|
r0.append(r6);
|
|
r0.append(" is already attached to a RecyclerView:");
|
|
r0.append(r6.s.e());
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:35:0x00c9, code lost:
|
|
|
|
throw new java.lang.IllegalArgumentException(r0.toString());
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:36:0x00ca, code lost:
|
|
|
|
r5.M.b();
|
|
requestLayout();
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:37:0x00d2, code lost:
|
|
|
|
return;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public void setLayoutManager(androidx.recyclerview.widget.RecyclerView.tOB r6) {
|
|
/*
|
|
r5 = this;
|
|
androidx.recyclerview.widget.RecyclerView$tOB r0 = r5.x
|
|
if (r6 != r0) goto L5
|
|
return
|
|
L5:
|
|
int r0 = r5.O
|
|
r1 = 0
|
|
if (r0 == 0) goto L12
|
|
r5.O = r1
|
|
r5.a()
|
|
r5.c(r1)
|
|
L12:
|
|
r5.a()
|
|
androidx.recyclerview.widget.RecyclerView$tOB r0 = r5.x
|
|
if (r0 == 0) goto L4e
|
|
androidx.recyclerview.widget.RecyclerView$jbe r0 = r5.t
|
|
if (r0 == 0) goto L20
|
|
r0.endAnimations()
|
|
L20:
|
|
androidx.recyclerview.widget.RecyclerView$tOB r0 = r5.x
|
|
androidx.recyclerview.widget.RecyclerView$huo r2 = r5.M
|
|
r0.c(r2)
|
|
androidx.recyclerview.widget.RecyclerView$tOB r0 = r5.x
|
|
androidx.recyclerview.widget.RecyclerView$huo r2 = r5.M
|
|
r0.e(r2)
|
|
androidx.recyclerview.widget.RecyclerView$huo r0 = r5.M
|
|
java.util.ArrayList<androidx.recyclerview.widget.RecyclerView$zJl> r2 = r0.b
|
|
r2.clear()
|
|
r0.c()
|
|
boolean r0 = r5.q
|
|
if (r0 == 0) goto L45
|
|
androidx.recyclerview.widget.RecyclerView$tOB r0 = r5.x
|
|
androidx.recyclerview.widget.RecyclerView$huo r2 = r5.M
|
|
r0.t = r1
|
|
r0.e(r5, r2)
|
|
L45:
|
|
androidx.recyclerview.widget.RecyclerView$tOB r0 = r5.x
|
|
r1 = 0
|
|
r0.e(r1)
|
|
r5.x = r1
|
|
goto L58
|
|
L4e:
|
|
androidx.recyclerview.widget.RecyclerView$huo r0 = r5.M
|
|
java.util.ArrayList<androidx.recyclerview.widget.RecyclerView$zJl> r1 = r0.b
|
|
r1.clear()
|
|
r0.c()
|
|
L58:
|
|
o.Emo r0 = r5.n
|
|
o.Emo$RVV r1 = r0.e
|
|
r2 = 0
|
|
r1.d = r2
|
|
o.Emo$RVV r1 = r1.e
|
|
if (r1 == 0) goto L6b
|
|
L64:
|
|
r1.d = r2
|
|
o.Emo$RVV r1 = r1.e
|
|
if (r1 == 0) goto L6b
|
|
goto L64
|
|
L6b:
|
|
java.util.List<android.view.View> r1 = r0.b
|
|
int r1 = r1.size()
|
|
r2 = 1
|
|
int r1 = r1 - r2
|
|
L73:
|
|
if (r1 < 0) goto L8a
|
|
o.Emo$LWm r3 = r0.d
|
|
java.util.List<android.view.View> r4 = r0.b
|
|
java.lang.Object r4 = r4.get(r1)
|
|
android.view.View r4 = (android.view.View) r4
|
|
r3.b(r4)
|
|
java.util.List<android.view.View> r3 = r0.b
|
|
r3.remove(r1)
|
|
int r1 = r1 + (-1)
|
|
goto L73
|
|
L8a:
|
|
o.Emo$LWm r0 = r0.d
|
|
r0.e()
|
|
r5.x = r6
|
|
if (r6 == 0) goto Lca
|
|
androidx.recyclerview.widget.RecyclerView r0 = r6.s
|
|
if (r0 != 0) goto La8
|
|
androidx.recyclerview.widget.RecyclerView$tOB r6 = r5.x
|
|
r6.e(r5)
|
|
boolean r6 = r5.q
|
|
if (r6 == 0) goto Lca
|
|
androidx.recyclerview.widget.RecyclerView$tOB r6 = r5.x
|
|
r6.t = r2
|
|
r6.c(r5)
|
|
goto Lca
|
|
La8:
|
|
java.lang.StringBuilder r0 = new java.lang.StringBuilder
|
|
java.lang.String r1 = "LayoutManager "
|
|
r0.<init>(r1)
|
|
r0.append(r6)
|
|
java.lang.String r1 = " is already attached to a RecyclerView:"
|
|
r0.append(r1)
|
|
androidx.recyclerview.widget.RecyclerView r6 = r6.s
|
|
java.lang.IllegalArgumentException r1 = new java.lang.IllegalArgumentException
|
|
java.lang.String r6 = r6.e()
|
|
r0.append(r6)
|
|
java.lang.String r6 = r0.toString()
|
|
r1.<init>(r6)
|
|
throw r1
|
|
Lca:
|
|
androidx.recyclerview.widget.RecyclerView$huo r6 = r5.M
|
|
r6.b()
|
|
r5.requestLayout()
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.RecyclerView.setLayoutManager(androidx.recyclerview.widget.RecyclerView$tOB):void");
|
|
}
|
|
|
|
final void a(View view) {
|
|
zJl zjl = view == null ? null : ((saX) view.getLayoutParams()).g;
|
|
Sts sts = this.g;
|
|
if (sts != null && zjl != null) {
|
|
sts.onViewDetachedFromWindow(zjl);
|
|
}
|
|
List<NHB> list = this.z;
|
|
if (list != null) {
|
|
for (int size = list.size() - 1; size >= 0; size--) {
|
|
this.z.get(size);
|
|
}
|
|
}
|
|
}
|
|
|
|
public static int d(View view) {
|
|
zJl zjl = view == null ? null : ((saX) view.getLayoutParams()).g;
|
|
if (zjl != null) {
|
|
return zjl.getAbsoluteAdapterPosition();
|
|
}
|
|
return -1;
|
|
}
|
|
|
|
public static int f(View view) {
|
|
zJl zjl = view == null ? null : ((saX) view.getLayoutParams()).g;
|
|
if (zjl != null) {
|
|
return zjl.getLayoutPosition();
|
|
}
|
|
return -1;
|
|
}
|
|
|
|
@Override // android.view.ViewGroup
|
|
protected void removeDetachedView(View view, boolean z) {
|
|
zJl zjl = view == null ? null : ((saX) view.getLayoutParams()).g;
|
|
if (zjl != null) {
|
|
if (zjl.isTmpDetached()) {
|
|
zjl.clearTmpDetachFlag();
|
|
} else if (!zjl.shouldIgnore()) {
|
|
StringBuilder sb = new StringBuilder("Called removeDetachedView with a view which is not flagged as tmp detached.");
|
|
sb.append(zjl);
|
|
sb.append(e());
|
|
throw new IllegalArgumentException(sb.toString());
|
|
}
|
|
}
|
|
view.clearAnimation();
|
|
a(view);
|
|
super.removeDetachedView(view, z);
|
|
}
|
|
|
|
@Override // android.view.ViewGroup, android.view.ViewParent
|
|
public boolean requestChildRectangleOnScreen(View view, Rect rect, boolean z) {
|
|
return this.x.Iv_(this, view, rect, z, false);
|
|
}
|
|
|
|
@Override // android.view.ViewGroup, android.view.ViewParent
|
|
public void requestChildFocus(View view, View view2) {
|
|
CeN ceN = this.x.u;
|
|
if ((ceN == null || !ceN.h) && this.B <= 0 && view2 != null) {
|
|
c(view, view2);
|
|
}
|
|
super.requestChildFocus(view, view2);
|
|
}
|
|
|
|
@Deprecated
|
|
public void setRecyclerListener(mxa mxaVar) {
|
|
this.N = mxaVar;
|
|
}
|
|
|
|
public void setPreserveFocusAfterLayout(boolean z) {
|
|
this.aA = z;
|
|
}
|
|
|
|
@Deprecated
|
|
public void setOnScrollListener(dAO dao) {
|
|
this.az = dao;
|
|
}
|
|
|
|
public void setOnFlingListener(vUG vug) {
|
|
this.H = vug;
|
|
}
|
|
|
|
public void setHasFixedSize(boolean z) {
|
|
this.r = z;
|
|
}
|
|
|
|
@Override // android.view.ViewGroup
|
|
public final boolean isLayoutSuppressed() {
|
|
return this.D;
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public boolean isAttachedToWindow() {
|
|
return this.q;
|
|
}
|
|
|
|
@Override // android.view.ViewGroup
|
|
public boolean getClipToPadding() {
|
|
return this.m;
|
|
}
|
|
|
|
@Override // android.view.ViewGroup, android.view.View
|
|
public CharSequence getAccessibilityClassName() {
|
|
return "androidx.recyclerview.widget.RecyclerView";
|
|
}
|
|
}
|