package p9;

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

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

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

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

    public /* synthetic */ f(g gVar, int i10) {
        this.f31812a = i10;
        this.f31813b = gVar;
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public final void onAnimationEnd(Animator animator) {
        switch (this.f31812a) {
            case 1:
                super.onAnimationEnd(animator);
                g gVar = this.f31813b;
                gVar.a();
                t3.c cVar = gVar.f31826j;
                if (cVar != null) {
                    cVar.a((q) gVar.f13084a);
                }
                break;
            default:
                super.onAnimationEnd(animator);
                break;
        }
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public final void onAnimationRepeat(Animator animator) {
        switch (this.f31812a) {
            case 0:
                super.onAnimationRepeat(animator);
                g gVar = this.f31813b;
                gVar.f31823g = (gVar.f31823g + 4) % gVar.f31822f.f31790e.length;
                break;
            default:
                super.onAnimationRepeat(animator);
                break;
        }
    }
}
