484 lines
16 KiB
Java
484 lines
16 KiB
Java
package o;
|
|
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import androidx.core.view.ViewCompat;
|
|
import androidx.fragment.app.Fragment;
|
|
import com.airbnb.deeplinkdispatch.UrlTreeKt;
|
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
|
import java.util.ArrayList;
|
|
import java.util.HashSet;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import o.IUF;
|
|
import o.vNC;
|
|
|
|
/* renamed from: o.wOZ, reason: case insensitive filesystem */
|
|
/* loaded from: classes.dex */
|
|
public abstract class AbstractC17389wOZ {
|
|
private final ViewGroup d;
|
|
final ArrayList<HBt> c = new ArrayList<>();
|
|
final ArrayList<HBt> a = new ArrayList<>();
|
|
boolean b = false;
|
|
boolean e = false;
|
|
|
|
abstract void b(List<HBt> list, boolean z);
|
|
|
|
public static AbstractC17389wOZ zh_(ViewGroup viewGroup, yRS yrs) {
|
|
return zi_(viewGroup, yrs.v());
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static AbstractC17389wOZ zi_(ViewGroup viewGroup, DVM dvm) {
|
|
Object tag = viewGroup.getTag(IUF.IeS.special_effects_controller_view_tag);
|
|
if (tag instanceof AbstractC17389wOZ) {
|
|
return (AbstractC17389wOZ) tag;
|
|
}
|
|
AbstractC17389wOZ zk_ = dvm.zk_(viewGroup);
|
|
viewGroup.setTag(IUF.IeS.special_effects_controller_view_tag, zk_);
|
|
return zk_;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public AbstractC17389wOZ(ViewGroup viewGroup) {
|
|
this.d = viewGroup;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public final HBt b(Fragment fragment) {
|
|
Iterator<HBt> it = this.c.iterator();
|
|
while (it.hasNext()) {
|
|
HBt next = it.next();
|
|
if (next.b.equals(fragment) && !next.d) {
|
|
return next;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public final void c(HBt.EnumC0126HBt enumC0126HBt, HBt.RVV rvv, zMt zmt) {
|
|
synchronized (this.c) {
|
|
vNC vnc = new vNC();
|
|
HBt b = b(zmt.e);
|
|
if (b != null) {
|
|
b.d(enumC0126HBt, rvv);
|
|
return;
|
|
}
|
|
LWm lWm = new LWm(enumC0126HBt, rvv, zmt, vnc);
|
|
this.c.add(lWm);
|
|
lWm.e.add(new Runnable(this, lWm) { // from class: o.wOZ.5
|
|
final AbstractC17389wOZ c;
|
|
final LWm e;
|
|
|
|
{
|
|
this.c = this;
|
|
this.e = lWm;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
if (this.c.c.contains(this.e)) {
|
|
this.e.a.a(this.e.b.mView);
|
|
}
|
|
}
|
|
});
|
|
lWm.e.add(new Runnable(this, lWm) { // from class: o.wOZ.2
|
|
final LWm c;
|
|
final AbstractC17389wOZ d;
|
|
|
|
{
|
|
this.d = this;
|
|
this.c = lWm;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
this.d.c.remove(this.c);
|
|
this.d.a.remove(this.c);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:11:0x002d, code lost:
|
|
|
|
r6.e = r2.b.isPostponed();
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void c() {
|
|
/*
|
|
r6 = this;
|
|
java.util.ArrayList<o.wOZ$HBt> r0 = r6.c
|
|
monitor-enter(r0)
|
|
r6.b() // Catch: java.lang.Throwable -> L3b
|
|
r1 = 0
|
|
r6.e = r1 // Catch: java.lang.Throwable -> L3b
|
|
java.util.ArrayList<o.wOZ$HBt> r1 = r6.c // Catch: java.lang.Throwable -> L3b
|
|
int r1 = r1.size() // Catch: java.lang.Throwable -> L3b
|
|
int r1 = r1 + (-1)
|
|
L11:
|
|
if (r1 < 0) goto L39
|
|
java.util.ArrayList<o.wOZ$HBt> r2 = r6.c // Catch: java.lang.Throwable -> L3b
|
|
java.lang.Object r2 = r2.get(r1) // Catch: java.lang.Throwable -> L3b
|
|
o.wOZ$HBt r2 = (o.AbstractC17389wOZ.HBt) r2 // Catch: java.lang.Throwable -> L3b
|
|
androidx.fragment.app.Fragment r3 = r2.b // Catch: java.lang.Throwable -> L3b
|
|
android.view.View r3 = r3.mView // Catch: java.lang.Throwable -> L3b
|
|
o.wOZ$HBt$HBt r3 = o.AbstractC17389wOZ.HBt.EnumC0126HBt.b(r3) // Catch: java.lang.Throwable -> L3b
|
|
o.wOZ$HBt$HBt r4 = r2.a // Catch: java.lang.Throwable -> L3b
|
|
o.wOZ$HBt$HBt r5 = o.AbstractC17389wOZ.HBt.EnumC0126HBt.VISIBLE // Catch: java.lang.Throwable -> L3b
|
|
if (r4 != r5) goto L36
|
|
o.wOZ$HBt$HBt r4 = o.AbstractC17389wOZ.HBt.EnumC0126HBt.VISIBLE // Catch: java.lang.Throwable -> L3b
|
|
if (r3 == r4) goto L36
|
|
androidx.fragment.app.Fragment r1 = r2.b // Catch: java.lang.Throwable -> L3b
|
|
boolean r1 = r1.isPostponed() // Catch: java.lang.Throwable -> L3b
|
|
r6.e = r1 // Catch: java.lang.Throwable -> L3b
|
|
goto L39
|
|
L36:
|
|
int r1 = r1 + (-1)
|
|
goto L11
|
|
L39:
|
|
monitor-exit(r0)
|
|
return
|
|
L3b:
|
|
r1 = move-exception
|
|
monitor-exit(r0)
|
|
throw r1
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: o.AbstractC17389wOZ.c():void");
|
|
}
|
|
|
|
public final void a() {
|
|
if (this.e) {
|
|
return;
|
|
}
|
|
if (!ViewCompat.H(this.d)) {
|
|
d();
|
|
this.b = false;
|
|
return;
|
|
}
|
|
synchronized (this.c) {
|
|
if (!this.c.isEmpty()) {
|
|
ArrayList arrayList = new ArrayList(this.a);
|
|
this.a.clear();
|
|
Iterator it = arrayList.iterator();
|
|
while (it.hasNext()) {
|
|
HBt hBt = (HBt) it.next();
|
|
yRS.b(2);
|
|
hBt.b();
|
|
if (!hBt.c) {
|
|
this.a.add(hBt);
|
|
}
|
|
}
|
|
b();
|
|
ArrayList arrayList2 = new ArrayList(this.c);
|
|
this.c.clear();
|
|
this.a.addAll(arrayList2);
|
|
yRS.b(2);
|
|
Iterator it2 = arrayList2.iterator();
|
|
while (it2.hasNext()) {
|
|
((HBt) it2.next()).a();
|
|
}
|
|
b(arrayList2, this.b);
|
|
this.b = false;
|
|
yRS.b(2);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public final void d() {
|
|
yRS.b(2);
|
|
ViewCompat.H(this.d);
|
|
synchronized (this.c) {
|
|
b();
|
|
Iterator<HBt> it = this.c.iterator();
|
|
while (it.hasNext()) {
|
|
it.next().a();
|
|
}
|
|
Iterator it2 = new ArrayList(this.a).iterator();
|
|
while (it2.hasNext()) {
|
|
HBt hBt = (HBt) it2.next();
|
|
yRS.b(2);
|
|
hBt.b();
|
|
}
|
|
Iterator it3 = new ArrayList(this.c).iterator();
|
|
while (it3.hasNext()) {
|
|
HBt hBt2 = (HBt) it3.next();
|
|
yRS.b(2);
|
|
hBt2.b();
|
|
}
|
|
}
|
|
}
|
|
|
|
private void b() {
|
|
Iterator<HBt> it = this.c.iterator();
|
|
while (it.hasNext()) {
|
|
HBt next = it.next();
|
|
if (next.i == HBt.RVV.ADDING) {
|
|
next.d(HBt.EnumC0126HBt.c(next.b.requireView().getVisibility()), HBt.RVV.NONE);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: o.wOZ$HBt */
|
|
/* loaded from: classes.dex */
|
|
public static class HBt {
|
|
EnumC0126HBt a;
|
|
final Fragment b;
|
|
RVV i;
|
|
final List<Runnable> e = new ArrayList();
|
|
final HashSet<vNC> h = new HashSet<>();
|
|
boolean d = false;
|
|
boolean c = false;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: o.wOZ$HBt$RVV */
|
|
/* loaded from: classes.dex */
|
|
public enum RVV {
|
|
NONE,
|
|
ADDING,
|
|
REMOVING
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public void a() {
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: o.wOZ$HBt$HBt, reason: collision with other inner class name */
|
|
/* loaded from: classes.dex */
|
|
public enum EnumC0126HBt {
|
|
REMOVED,
|
|
VISIBLE,
|
|
GONE,
|
|
INVISIBLE;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static EnumC0126HBt b(View view) {
|
|
return (view.getAlpha() == BitmapDescriptorFactory.HUE_RED && view.getVisibility() == 0) ? INVISIBLE : c(view.getVisibility());
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static EnumC0126HBt c(int i) {
|
|
if (i == 0) {
|
|
return VISIBLE;
|
|
}
|
|
if (i == 4) {
|
|
return INVISIBLE;
|
|
}
|
|
if (i == 8) {
|
|
return GONE;
|
|
}
|
|
throw new IllegalArgumentException("Unknown visibility ".concat(String.valueOf(i)));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public final void a(View view) {
|
|
int i = AnonymousClass3.a[ordinal()];
|
|
if (i == 1) {
|
|
ViewGroup viewGroup = (ViewGroup) view.getParent();
|
|
if (viewGroup != null) {
|
|
yRS.b(2);
|
|
viewGroup.removeView(view);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (i == 2) {
|
|
yRS.b(2);
|
|
view.setVisibility(0);
|
|
} else if (i == 3) {
|
|
yRS.b(2);
|
|
view.setVisibility(8);
|
|
} else if (i == 4) {
|
|
yRS.b(2);
|
|
view.setVisibility(4);
|
|
}
|
|
}
|
|
}
|
|
|
|
HBt(EnumC0126HBt enumC0126HBt, RVV rvv, Fragment fragment, vNC vnc) {
|
|
this.a = enumC0126HBt;
|
|
this.i = rvv;
|
|
this.b = fragment;
|
|
vnc.b(new vNC.LWm(this) { // from class: o.wOZ.HBt.4
|
|
final HBt a;
|
|
|
|
{
|
|
this.a = this;
|
|
}
|
|
|
|
@Override // o.vNC.LWm
|
|
public final void e() {
|
|
this.a.b();
|
|
}
|
|
});
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder("Operation {");
|
|
sb.append(Integer.toHexString(System.identityHashCode(this)));
|
|
sb.append("} {mFinalState = ");
|
|
sb.append(this.a);
|
|
sb.append("} {mLifecycleImpact = ");
|
|
sb.append(this.i);
|
|
sb.append("} {mFragment = ");
|
|
sb.append(this.b);
|
|
sb.append(UrlTreeKt.componentParamSuffix);
|
|
return sb.toString();
|
|
}
|
|
|
|
final void d(EnumC0126HBt enumC0126HBt, RVV rvv) {
|
|
int i = AnonymousClass3.e[rvv.ordinal()];
|
|
if (i == 1) {
|
|
if (this.a == EnumC0126HBt.REMOVED) {
|
|
yRS.b(2);
|
|
this.a = EnumC0126HBt.VISIBLE;
|
|
this.i = RVV.ADDING;
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (i == 2) {
|
|
yRS.b(2);
|
|
this.a = EnumC0126HBt.REMOVED;
|
|
this.i = RVV.REMOVING;
|
|
} else {
|
|
if (i != 3 || this.a == EnumC0126HBt.REMOVED) {
|
|
return;
|
|
}
|
|
yRS.b(2);
|
|
this.a = enumC0126HBt;
|
|
}
|
|
}
|
|
|
|
public void c() {
|
|
if (this.c) {
|
|
return;
|
|
}
|
|
yRS.b(2);
|
|
this.c = true;
|
|
Iterator<Runnable> it = this.e.iterator();
|
|
while (it.hasNext()) {
|
|
it.next().run();
|
|
}
|
|
}
|
|
|
|
final void b() {
|
|
if (this.d) {
|
|
return;
|
|
}
|
|
this.d = true;
|
|
if (this.h.isEmpty()) {
|
|
c();
|
|
return;
|
|
}
|
|
Iterator it = new ArrayList(this.h).iterator();
|
|
while (it.hasNext()) {
|
|
((vNC) it.next()).c();
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: o.wOZ$3, reason: invalid class name */
|
|
/* loaded from: classes.dex */
|
|
public static /* synthetic */ class AnonymousClass3 {
|
|
static final int[] a;
|
|
static final int[] e;
|
|
|
|
static {
|
|
int[] iArr = new int[HBt.RVV.values().length];
|
|
e = iArr;
|
|
try {
|
|
iArr[HBt.RVV.ADDING.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
e[HBt.RVV.REMOVING.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
try {
|
|
e[HBt.RVV.NONE.ordinal()] = 3;
|
|
} catch (NoSuchFieldError unused3) {
|
|
}
|
|
int[] iArr2 = new int[HBt.EnumC0126HBt.values().length];
|
|
a = iArr2;
|
|
try {
|
|
iArr2[HBt.EnumC0126HBt.REMOVED.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused4) {
|
|
}
|
|
try {
|
|
a[HBt.EnumC0126HBt.VISIBLE.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused5) {
|
|
}
|
|
try {
|
|
a[HBt.EnumC0126HBt.GONE.ordinal()] = 3;
|
|
} catch (NoSuchFieldError unused6) {
|
|
}
|
|
try {
|
|
a[HBt.EnumC0126HBt.INVISIBLE.ordinal()] = 4;
|
|
} catch (NoSuchFieldError unused7) {
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: o.wOZ$LWm */
|
|
/* loaded from: classes.dex */
|
|
public static class LWm extends HBt {
|
|
private final zMt j;
|
|
|
|
@Override // o.AbstractC17389wOZ.HBt
|
|
public final void c() {
|
|
super.c();
|
|
this.j.a();
|
|
}
|
|
|
|
LWm(HBt.EnumC0126HBt enumC0126HBt, HBt.RVV rvv, zMt zmt, vNC vnc) {
|
|
super(enumC0126HBt, rvv, zmt.e, vnc);
|
|
this.j = zmt;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Override // o.AbstractC17389wOZ.HBt
|
|
public final void a() {
|
|
if (this.i != HBt.RVV.ADDING) {
|
|
if (this.i == HBt.RVV.REMOVING) {
|
|
View requireView = this.j.e.requireView();
|
|
if (yRS.b(2)) {
|
|
requireView.findFocus();
|
|
}
|
|
requireView.clearFocus();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
Fragment fragment = this.j.e;
|
|
View findFocus = fragment.mView.findFocus();
|
|
if (findFocus != null) {
|
|
fragment.setFocusedView(findFocus);
|
|
yRS.b(2);
|
|
}
|
|
View requireView2 = this.b.requireView();
|
|
if (requireView2.getParent() == null) {
|
|
this.j.d();
|
|
requireView2.setAlpha(BitmapDescriptorFactory.HUE_RED);
|
|
}
|
|
if (requireView2.getAlpha() == BitmapDescriptorFactory.HUE_RED && requireView2.getVisibility() == 0) {
|
|
requireView2.setVisibility(4);
|
|
}
|
|
requireView2.setAlpha(fragment.getPostOnViewCreatedAlpha());
|
|
}
|
|
}
|
|
|
|
public final ViewGroup zj_() {
|
|
return this.d;
|
|
}
|
|
}
|