package o; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.content.Context; import android.content.res.TypedArray; import android.content.res.XmlResourceParser; import android.util.AttributeSet; import android.view.View; import android.view.ViewGroup; import o.VKj; /* renamed from: o.fSY, reason: case insensitive filesystem */ /* loaded from: classes.dex */ public abstract class AbstractC13152fSY extends VKj { private static final String[] g = {"android:visibility:visibility", "android:visibility:parent"}; /* renamed from: o, reason: collision with root package name */ private int f9110o; public Animator Bx_(View view, PaT paT) { return null; } public Animator By_(View view, PaT paT) { return null; } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.fSY$RVV */ /* loaded from: classes.dex */ public static class RVV { ViewGroup a; ViewGroup b; boolean c; int d; int e; boolean h; RVV() { } } public AbstractC13152fSY() { this.f9110o = 3; } public AbstractC13152fSY(Context context, AttributeSet attributeSet) { super(context, attributeSet); this.f9110o = 3; TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, QXV.d); int oy_ = C2447ael.oy_(obtainStyledAttributes, (XmlResourceParser) attributeSet, "transitionVisibilityMode", 0, 0); obtainStyledAttributes.recycle(); if (oy_ != 0) { if ((oy_ & (-4)) == 0) { this.f9110o = oy_; return; } throw new IllegalArgumentException("Only MODE_IN and MODE_OUT flags are allowed"); } } public final void b(int i) { if ((i & (-4)) != 0) { throw new IllegalArgumentException("Only MODE_IN and MODE_OUT flags are allowed"); } this.f9110o = i; } private static void a(PaT paT) { paT.a.put("android:visibility:visibility", Integer.valueOf(paT.d.getVisibility())); paT.a.put("android:visibility:parent", paT.d.getParent()); int[] iArr = new int[2]; paT.d.getLocationOnScreen(iArr); paT.a.put("android:visibility:screenLocation", iArr); } @Override // o.VKj public void b(PaT paT) { a(paT); } @Override // o.VKj public final void d(PaT paT) { a(paT); } private static RVV a(PaT paT, PaT paT2) { RVV rvv = new RVV(); rvv.h = false; rvv.c = false; if (paT != null && paT.a.containsKey("android:visibility:visibility")) { rvv.e = ((Integer) paT.a.get("android:visibility:visibility")).intValue(); rvv.a = (ViewGroup) paT.a.get("android:visibility:parent"); } else { rvv.e = -1; rvv.a = null; } if (paT2 != null && paT2.a.containsKey("android:visibility:visibility")) { rvv.d = ((Integer) paT2.a.get("android:visibility:visibility")).intValue(); rvv.b = (ViewGroup) paT2.a.get("android:visibility:parent"); } else { rvv.d = -1; rvv.b = null; } if (paT != null && paT2 != null) { if (rvv.e == rvv.d && rvv.a == rvv.b) { return rvv; } if (rvv.e != rvv.d) { if (rvv.e == 0) { rvv.c = false; rvv.h = true; } else if (rvv.d == 0) { rvv.c = true; rvv.h = true; } } else if (rvv.b == null) { rvv.c = false; rvv.h = true; } else if (rvv.a == null) { rvv.c = true; rvv.h = true; } } else if (paT == null && rvv.d == 0) { rvv.c = true; rvv.h = true; } else if (paT2 == null && rvv.e == 0) { rvv.c = false; rvv.h = true; } return rvv; } /* JADX WARN: Code restructure failed: missing block: B:14:0x003a, code lost: if (a(b(r11, false), c(r11, false)).h == false) goto L16; */ @Override // o.VKj /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final android.animation.Animator Ka_(android.view.ViewGroup r11, o.PaT r12, o.PaT r13) { /* Method dump skipped, instructions count: 319 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.AbstractC13152fSY.Ka_(android.view.ViewGroup, o.PaT, o.PaT):android.animation.Animator"); } @Override // o.VKj public final boolean c(PaT paT, PaT paT2) { if (paT == null && paT2 == null) { return false; } if (paT != null && paT2 != null && paT2.a.containsKey("android:visibility:visibility") != paT.a.containsKey("android:visibility:visibility")) { return false; } RVV a = a(paT, paT2); if (a.h) { return a.e == 0 || a.d == 0; } return false; } /* renamed from: o.fSY$LWm */ /* loaded from: classes.dex */ static class LWm extends AnimatorListenerAdapter implements VKj.Sts { private final int b; private boolean c; private final ViewGroup d; private final View f; private boolean a = false; private final boolean e = true; @Override // o.VKj.Sts public final void b() { } @Override // o.VKj.Sts public final void e() { } @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener public final void onAnimationRepeat(Animator animator) { } @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener public final void onAnimationStart(Animator animator) { } LWm(View view, int i) { this.f = view; this.b = i; this.d = (ViewGroup) view.getParent(); a(true); } @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorPauseListener public final void onAnimationPause(Animator animator) { if (this.a) { return; } RHF.e(this.f, this.b); } @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorPauseListener public final void onAnimationResume(Animator animator) { if (this.a) { return; } RHF.e(this.f, 0); } @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener public final void onAnimationEnd(Animator animator) { d(); } @Override // o.VKj.Sts public final void e(VKj vKj) { d(); vKj.b(this); } @Override // o.VKj.Sts public final void a() { a(false); } @Override // o.VKj.Sts public final void c() { a(true); } private void d() { if (!this.a) { RHF.e(this.f, this.b); ViewGroup viewGroup = this.d; if (viewGroup != null) { viewGroup.invalidate(); } } a(false); } private void a(boolean z) { ViewGroup viewGroup; if (!this.e || this.c == z || (viewGroup = this.d) == null) { return; } this.c = z; C17523xVc.Bn_(viewGroup, z); } @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener public final void onAnimationCancel(Animator animator) { this.a = true; } } @Override // o.VKj public final String[] a() { return g; } public final int n() { return this.f9110o; } }