268 lines
8.9 KiB
Java
268 lines
8.9 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.view.animation.Animation;
|
||
|
import androidx.core.view.ViewCompat;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.Collection;
|
||
|
import java.util.Iterator;
|
||
|
import java.util.Map;
|
||
|
import o.AbstractC17389wOZ;
|
||
|
import o.gLd;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
final class QJz extends AbstractC17389wOZ {
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public QJz(ViewGroup viewGroup) {
|
||
|
super(viewGroup);
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:317:0x04e9 */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:327:0x0512 */
|
||
|
/* JADX WARN: Type inference failed for: r3v50, types: [java.util.List] */
|
||
|
@Override // o.AbstractC17389wOZ
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
final void b(java.util.List<o.AbstractC17389wOZ.HBt> r41, boolean r42) {
|
||
|
/*
|
||
|
Method dump skipped, instructions count: 2122
|
||
|
To view this dump add '--comments-level debug' option
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: o.QJz.b(java.util.List, boolean):void");
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.QJz$4, reason: invalid class name */
|
||
|
/* loaded from: classes.dex */
|
||
|
static /* synthetic */ class AnonymousClass4 {
|
||
|
static final int[] e;
|
||
|
|
||
|
static {
|
||
|
int[] iArr = new int[AbstractC17389wOZ.HBt.EnumC0126HBt.values().length];
|
||
|
e = iArr;
|
||
|
try {
|
||
|
iArr[AbstractC17389wOZ.HBt.EnumC0126HBt.GONE.ordinal()] = 1;
|
||
|
} catch (NoSuchFieldError unused) {
|
||
|
}
|
||
|
try {
|
||
|
e[AbstractC17389wOZ.HBt.EnumC0126HBt.INVISIBLE.ordinal()] = 2;
|
||
|
} catch (NoSuchFieldError unused2) {
|
||
|
}
|
||
|
try {
|
||
|
e[AbstractC17389wOZ.HBt.EnumC0126HBt.REMOVED.ordinal()] = 3;
|
||
|
} catch (NoSuchFieldError unused3) {
|
||
|
}
|
||
|
try {
|
||
|
e[AbstractC17389wOZ.HBt.EnumC0126HBt.VISIBLE.ordinal()] = 4;
|
||
|
} catch (NoSuchFieldError unused4) {
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.QJz$1, reason: invalid class name */
|
||
|
/* loaded from: classes.dex */
|
||
|
final class AnonymousClass1 implements Animation.AnimationListener {
|
||
|
final QJz a;
|
||
|
final View b;
|
||
|
final ViewGroup c;
|
||
|
final Sts d;
|
||
|
final AbstractC17389wOZ.HBt e;
|
||
|
|
||
|
@Override // android.view.animation.Animation.AnimationListener
|
||
|
public final void onAnimationRepeat(Animation animation) {
|
||
|
}
|
||
|
|
||
|
AnonymousClass1(QJz qJz, AbstractC17389wOZ.HBt hBt, ViewGroup viewGroup, View view, Sts sts) {
|
||
|
this.a = qJz;
|
||
|
this.e = hBt;
|
||
|
this.c = viewGroup;
|
||
|
this.b = view;
|
||
|
this.d = sts;
|
||
|
}
|
||
|
|
||
|
@Override // android.view.animation.Animation.AnimationListener
|
||
|
public final void onAnimationStart(Animation animation) {
|
||
|
yRS.b(2);
|
||
|
}
|
||
|
|
||
|
@Override // android.view.animation.Animation.AnimationListener
|
||
|
public final void onAnimationEnd(Animation animation) {
|
||
|
this.c.post(new Runnable(this) { // from class: o.QJz.1.3
|
||
|
final AnonymousClass1 c;
|
||
|
|
||
|
{
|
||
|
this.c = this;
|
||
|
}
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public final void run() {
|
||
|
this.c.c.endViewTransition(this.c.b);
|
||
|
Sts sts = this.c.d;
|
||
|
AbstractC17389wOZ.HBt hBt = sts.b;
|
||
|
if (hBt.h.remove(sts.c) && hBt.h.isEmpty()) {
|
||
|
hBt.c();
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
yRS.b(2);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private static void e(nyh<String, View> nyhVar, Collection<String> collection) {
|
||
|
Iterator<Map.Entry<String, View>> it = nyhVar.entrySet().iterator();
|
||
|
while (it.hasNext()) {
|
||
|
if (!collection.contains(ViewCompat.u(it.next().getValue()))) {
|
||
|
it.remove();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private void a(ArrayList<View> arrayList, View view) {
|
||
|
if (view instanceof ViewGroup) {
|
||
|
ViewGroup viewGroup = (ViewGroup) view;
|
||
|
if (QIQ.sX_(viewGroup)) {
|
||
|
if (arrayList.contains(view)) {
|
||
|
return;
|
||
|
}
|
||
|
arrayList.add(viewGroup);
|
||
|
return;
|
||
|
}
|
||
|
int childCount = viewGroup.getChildCount();
|
||
|
for (int i = 0; i < childCount; i++) {
|
||
|
View childAt = viewGroup.getChildAt(i);
|
||
|
if (childAt.getVisibility() == 0) {
|
||
|
a(arrayList, childAt);
|
||
|
}
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
if (arrayList.contains(view)) {
|
||
|
return;
|
||
|
}
|
||
|
arrayList.add(view);
|
||
|
}
|
||
|
|
||
|
private void e(Map<String, View> map, View view) {
|
||
|
String u = ViewCompat.u(view);
|
||
|
if (u != null) {
|
||
|
map.put(u, view);
|
||
|
}
|
||
|
if (view instanceof ViewGroup) {
|
||
|
ViewGroup viewGroup = (ViewGroup) view;
|
||
|
int childCount = viewGroup.getChildCount();
|
||
|
for (int i = 0; i < childCount; i++) {
|
||
|
View childAt = viewGroup.getChildAt(i);
|
||
|
if (childAt.getVisibility() == 0) {
|
||
|
e(map, childAt);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* loaded from: classes.dex */
|
||
|
public static class HBt {
|
||
|
final AbstractC17389wOZ.HBt b;
|
||
|
final vNC c;
|
||
|
|
||
|
HBt(AbstractC17389wOZ.HBt hBt, vNC vnc) {
|
||
|
this.b = hBt;
|
||
|
this.c = vnc;
|
||
|
}
|
||
|
|
||
|
final boolean d() {
|
||
|
AbstractC17389wOZ.HBt.EnumC0126HBt b = AbstractC17389wOZ.HBt.EnumC0126HBt.b(this.b.b.mView);
|
||
|
AbstractC17389wOZ.HBt.EnumC0126HBt enumC0126HBt = this.b.a;
|
||
|
return b == enumC0126HBt || !(b == AbstractC17389wOZ.HBt.EnumC0126HBt.VISIBLE || enumC0126HBt == AbstractC17389wOZ.HBt.EnumC0126HBt.VISIBLE);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
static class Sts extends HBt {
|
||
|
private gLd.LWm a;
|
||
|
private boolean d;
|
||
|
private boolean e;
|
||
|
|
||
|
Sts(AbstractC17389wOZ.HBt hBt, vNC vnc, boolean z) {
|
||
|
super(hBt, vnc);
|
||
|
this.e = false;
|
||
|
this.d = z;
|
||
|
}
|
||
|
|
||
|
final gLd.LWm b(Context context) {
|
||
|
if (this.e) {
|
||
|
return this.a;
|
||
|
}
|
||
|
gLd.LWm e = gLd.e(context, this.b.b, this.b.a == AbstractC17389wOZ.HBt.EnumC0126HBt.VISIBLE, this.d);
|
||
|
this.a = e;
|
||
|
this.e = true;
|
||
|
return e;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
static class IeS extends HBt {
|
||
|
final Object a;
|
||
|
final Object d;
|
||
|
final boolean e;
|
||
|
|
||
|
IeS(AbstractC17389wOZ.HBt hBt, vNC vnc, boolean z, boolean z2) {
|
||
|
super(hBt, vnc);
|
||
|
Object exitTransition;
|
||
|
Object enterTransition;
|
||
|
boolean allowEnterTransitionOverlap;
|
||
|
if (hBt.a == AbstractC17389wOZ.HBt.EnumC0126HBt.VISIBLE) {
|
||
|
if (z) {
|
||
|
enterTransition = hBt.b.getReenterTransition();
|
||
|
} else {
|
||
|
enterTransition = hBt.b.getEnterTransition();
|
||
|
}
|
||
|
this.a = enterTransition;
|
||
|
if (z) {
|
||
|
allowEnterTransitionOverlap = hBt.b.getAllowReturnTransitionOverlap();
|
||
|
} else {
|
||
|
allowEnterTransitionOverlap = hBt.b.getAllowEnterTransitionOverlap();
|
||
|
}
|
||
|
this.e = allowEnterTransitionOverlap;
|
||
|
} else {
|
||
|
if (z) {
|
||
|
exitTransition = hBt.b.getReturnTransition();
|
||
|
} else {
|
||
|
exitTransition = hBt.b.getExitTransition();
|
||
|
}
|
||
|
this.a = exitTransition;
|
||
|
this.e = true;
|
||
|
}
|
||
|
if (!z2) {
|
||
|
this.d = null;
|
||
|
} else if (z) {
|
||
|
this.d = hBt.b.getSharedElementReturnTransition();
|
||
|
} else {
|
||
|
this.d = hBt.b.getSharedElementEnterTransition();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
final AbstractC12179etN d(Object obj) {
|
||
|
if (obj == null) {
|
||
|
return null;
|
||
|
}
|
||
|
if (C16432oNE.d != null && C16432oNE.d.d(obj)) {
|
||
|
return C16432oNE.d;
|
||
|
}
|
||
|
if (C16432oNE.b != null && C16432oNE.b.d(obj)) {
|
||
|
return C16432oNE.b;
|
||
|
}
|
||
|
StringBuilder sb = new StringBuilder("Transition ");
|
||
|
sb.append(obj);
|
||
|
sb.append(" for fragment ");
|
||
|
sb.append(this.b.b);
|
||
|
sb.append(" is not a valid framework Transition or AndroidX Transition");
|
||
|
throw new IllegalArgumentException(sb.toString());
|
||
|
}
|
||
|
}
|
||
|
}
|