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

92 lines
2.9 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.ArrayList;
import o.C17026tNn;
/* loaded from: classes.dex */
public final class tAF {
public static boolean c(C17026tNn.LWm lWm, C17026tNn.LWm lWm2, C17026tNn.LWm lWm3, C17026tNn.LWm lWm4) {
return (lWm3 == C17026tNn.LWm.FIXED || lWm3 == C17026tNn.LWm.WRAP_CONTENT || (lWm3 == C17026tNn.LWm.MATCH_PARENT && lWm != C17026tNn.LWm.WRAP_CONTENT)) || (lWm4 == C17026tNn.LWm.FIXED || lWm4 == C17026tNn.LWm.WRAP_CONTENT || (lWm4 == C17026tNn.LWm.MATCH_PARENT && lWm2 != C17026tNn.LWm.WRAP_CONTENT));
}
public static fGR a(ArrayList<fGR> arrayList, int i) {
int size = arrayList.size();
for (int i2 = 0; i2 < size; i2++) {
fGR fgr = arrayList.get(i2);
if (i == fgr.e) {
return fgr;
}
}
return null;
}
public static fGR d(C17026tNn c17026tNn, int i, ArrayList<fGR> arrayList, fGR fgr) {
int i2;
int o2;
if (i == 0) {
i2 = c17026tNn.f;
} else {
i2 = c17026tNn.af;
}
if (i2 != -1 && (fgr == null || i2 != fgr.e)) {
int i3 = 0;
while (true) {
if (i3 >= arrayList.size()) {
break;
}
fGR fgr2 = arrayList.get(i3);
if (fgr2.e == i2) {
if (fgr != null) {
fgr.b(i, fgr2);
arrayList.remove(fgr);
}
fgr = fgr2;
} else {
i3++;
}
}
} else if (i2 != -1) {
return fgr;
}
if (fgr == null) {
if ((c17026tNn instanceof NsV) && (o2 = ((NsV) c17026tNn).o(i)) != -1) {
int i4 = 0;
while (true) {
if (i4 >= arrayList.size()) {
break;
}
fGR fgr3 = arrayList.get(i4);
if (fgr3.e == o2) {
fgr = fgr3;
break;
}
i4++;
}
}
if (fgr == null) {
fgr = new fGR(i);
}
arrayList.add(fgr);
}
if (!fgr.d.contains(c17026tNn)) {
fgr.d.add(c17026tNn);
if (c17026tNn instanceof WAE) {
WAE wae = (WAE) c17026tNn;
wae.c.c(wae.a == 0 ? 1 : 0, arrayList, fgr);
}
if (i == 0) {
c17026tNn.f = fgr.e;
c17026tNn.D.c(i, arrayList, fgr);
c17026tNn.X.c(i, arrayList, fgr);
} else {
c17026tNn.af = fgr.e;
c17026tNn.V.c(i, arrayList, fgr);
c17026tNn.f9277o.c(i, arrayList, fgr);
c17026tNn.n.c(i, arrayList, fgr);
}
c17026tNn.m.c(i, arrayList, fgr);
}
return fgr;
}
}