package D1;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import n4.u0;

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

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

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

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

    public /* synthetic */ w(x xVar, C0093s c0093s, int i) {
        this.f1839a = i;
        this.f1841c = xVar;
        this.f1840b = c0093s;
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public final void onAnimationEnd(Animator animator) {
        switch (this.f1839a) {
            case u0.f15495q /* 0 */:
                x xVar = this.f1841c;
                xVar.i(1);
                if (xVar.f1843B) {
                    this.f1840b.post(xVar.f1862s);
                    xVar.f1843B = false;
                }
                break;
            case 1:
                x xVar2 = this.f1841c;
                xVar2.i(2);
                if (xVar2.f1843B) {
                    this.f1840b.post(xVar2.f1862s);
                    xVar2.f1843B = false;
                }
                break;
            default:
                x xVar3 = this.f1841c;
                xVar3.i(2);
                if (xVar3.f1843B) {
                    this.f1840b.post(xVar3.f1862s);
                    xVar3.f1843B = false;
                }
                break;
        }
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public final void onAnimationStart(Animator animator) {
        switch (this.f1839a) {
            case u0.f15495q /* 0 */:
                this.f1841c.i(3);
                break;
            case 1:
                this.f1841c.i(3);
                break;
            default:
                this.f1841c.i(3);
                break;
        }
    }
}
