package l;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import androidx.appcompat.widget.ScrollingTabContainerView;

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

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public boolean f29844b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final int f29845c;

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

    public t2(n9.k kVar, boolean z10, int i10) {
        this.f29843a = 1;
        this.f29846d = kVar;
        this.f29844b = z10;
        this.f29845c = i10;
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public final void onAnimationCancel(Animator animator) {
        switch (this.f29843a) {
            case 0:
                this.f29844b = true;
                break;
            default:
                super.onAnimationCancel(animator);
                break;
        }
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public final void onAnimationEnd(Animator animator) {
        int i10 = this.f29843a;
        Object obj = this.f29846d;
        switch (i10) {
            case 0:
                if (!this.f29844b) {
                    ScrollingTabContainerView scrollingTabContainerView = (ScrollingTabContainerView) obj;
                    scrollingTabContainerView.getClass();
                    scrollingTabContainerView.setVisibility(this.f29845c);
                    break;
                }
                break;
            default:
                n9.k kVar = (n9.k) obj;
                kVar.f31109b.setTranslationX(0.0f);
                kVar.c(this.f29845c, 0.0f, this.f29844b);
                break;
        }
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public final void onAnimationStart(Animator animator) {
        switch (this.f29843a) {
            case 0:
                ((ScrollingTabContainerView) this.f29846d).setVisibility(0);
                this.f29844b = false;
                break;
            default:
                super.onAnimationStart(animator);
                break;
        }
    }

    public t2(ScrollingTabContainerView scrollingTabContainerView) {
        this.f29843a = 0;
        this.f29846d = scrollingTabContainerView;
        this.f29844b = false;
    }
}
