package N1;

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

/* JADX INFO: renamed from: N1.w, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0221w extends AnimatorListenerAdapter {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public boolean f4683a = false;

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

    public C0221w(C0223y c0223y) {
        this.f4684b = c0223y;
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public final void onAnimationCancel(Animator animator) {
        this.f4683a = true;
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public final void onAnimationEnd(Animator animator) {
        if (this.f4683a) {
            this.f4683a = false;
            return;
        }
        C0223y c0223y = this.f4684b;
        if (((Float) c0223y.f4723z.getAnimatedValue()).floatValue() == 0.0f) {
            c0223y.f4697A = 0;
            c0223y.g(0);
        } else {
            c0223y.f4697A = 2;
            c0223y.f4716s.invalidate();
        }
    }
}
