package P;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.view.View;
import r.C0966e;
import z0.AbstractC1147p;

/* JADX INFO: loaded from: classes.dex */
public final class V extends AnimatorListenerAdapter {

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

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

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

    public V(b0 b0Var, View view) {
        this.f2405b = b0Var;
        this.f2406c = view;
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public final void onAnimationEnd(Animator animator) {
        switch (this.f2404a) {
            case 0:
                ((b0) this.f2405b).f2426a.d(1.0f);
                X.e((View) this.f2406c);
                break;
            default:
                ((C0966e) this.f2405b).remove(animator);
                ((AbstractC1147p) this.f2406c).f11035w.remove(animator);
                break;
        }
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public void onAnimationStart(Animator animator) {
        switch (this.f2404a) {
            case 1:
                ((AbstractC1147p) this.f2406c).f11035w.add(animator);
                break;
            default:
                super.onAnimationStart(animator);
                break;
        }
    }

    public V(AbstractC1147p abstractC1147p, C0966e c0966e) {
        this.f2406c = abstractC1147p;
        this.f2405b = c0966e;
    }
}
