package p9;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;

/* JADX INFO: loaded from: classes2.dex */
public final class h extends AnimatorListenerAdapter {

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

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

    public /* synthetic */ h(i iVar, int i10) {
        this.f31827a = i10;
        this.f31828b = iVar;
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public final void onAnimationEnd(Animator animator) {
        switch (this.f31827a) {
            case 1:
                super.onAnimationEnd(animator);
                i iVar = this.f31828b;
                iVar.a();
                t3.c cVar = iVar.f31841j;
                if (cVar != null) {
                    cVar.a((q) iVar.f13084a);
                }
                break;
            default:
                super.onAnimationEnd(animator);
                break;
        }
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public final void onAnimationRepeat(Animator animator) {
        switch (this.f31827a) {
            case 0:
                super.onAnimationRepeat(animator);
                i iVar = this.f31828b;
                iVar.f31838g = (iVar.f31838g + i.f31830l.length) % iVar.f31837f.f31790e.length;
                break;
            default:
                super.onAnimationRepeat(animator);
                break;
        }
    }
}
