package u0;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.view.View;
import android.view.ViewPropertyAnimator;

/* JADX INFO: renamed from: u0.d, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1042d extends AnimatorListenerAdapter {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f10169a = 1;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ V f10170b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ View f10171c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ ViewPropertyAnimator f10172d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ C1047i f10173e;

    public C1042d(C1047i c1047i, V v5, ViewPropertyAnimator viewPropertyAnimator, View view) {
        this.f10173e = c1047i;
        this.f10170b = v5;
        this.f10172d = viewPropertyAnimator;
        this.f10171c = view;
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public void onAnimationCancel(Animator animator) {
        switch (this.f10169a) {
            case 1:
                this.f10171c.setAlpha(1.0f);
                break;
            default:
                super.onAnimationCancel(animator);
                break;
        }
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public final void onAnimationEnd(Animator animator) {
        switch (this.f10169a) {
            case 0:
                this.f10172d.setListener(null);
                this.f10171c.setAlpha(1.0f);
                C1047i c1047i = this.f10173e;
                V v5 = this.f10170b;
                c1047i.c(v5);
                c1047i.q.remove(v5);
                c1047i.i();
                break;
            default:
                this.f10172d.setListener(null);
                C1047i c1047i2 = this.f10173e;
                V v6 = this.f10170b;
                c1047i2.c(v6);
                c1047i2.f10213o.remove(v6);
                c1047i2.i();
                break;
        }
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public final void onAnimationStart(Animator animator) {
        switch (this.f10169a) {
            case 0:
                this.f10173e.getClass();
                break;
            default:
                this.f10173e.getClass();
                break;
        }
    }

    public C1042d(C1047i c1047i, V v5, View view, ViewPropertyAnimator viewPropertyAnimator) {
        this.f10173e = c1047i;
        this.f10170b = v5;
        this.f10171c = view;
        this.f10172d = viewPropertyAnimator;
    }
}
