package androidx.recyclerview.widget;

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

/* JADX INFO: renamed from: androidx.recyclerview.widget.d, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1154d extends AnimatorListenerAdapter {

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

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

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

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

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

    public C1154d(C1159i c1159i, Z z6, ViewPropertyAnimator viewPropertyAnimator, View view) {
        this.f13044e = c1159i;
        this.f13041b = z6;
        this.f13043d = viewPropertyAnimator;
        this.f13042c = view;
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public void onAnimationCancel(Animator animator) {
        switch (this.f13040a) {
            case 1:
                this.f13042c.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.f13040a) {
            case 0:
                this.f13043d.setListener(null);
                this.f13042c.setAlpha(1.0f);
                C1159i c1159i = this.f13044e;
                Z z6 = this.f13041b;
                c1159i.c(z6);
                c1159i.f13102q.remove(z6);
                c1159i.i();
                break;
            default:
                this.f13043d.setListener(null);
                C1159i c1159i2 = this.f13044e;
                Z z7 = this.f13041b;
                c1159i2.c(z7);
                c1159i2.f13100o.remove(z7);
                c1159i2.i();
                break;
        }
    }

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

    public C1154d(C1159i c1159i, Z z6, View view, ViewPropertyAnimator viewPropertyAnimator) {
        this.f13044e = c1159i;
        this.f13041b = z6;
        this.f13042c = view;
        this.f13043d = viewPropertyAnimator;
    }
}
