package androidx.recyclerview.widget;

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

/* JADX INFO: renamed from: androidx.recyclerview.widget.l, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1162l extends AnimatorListenerAdapter {

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

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

    public C1162l(C1164n c1164n) {
        this.f13115b = c1164n;
    }

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

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public final void onAnimationEnd(Animator animator) {
        if (this.f13114a) {
            this.f13114a = false;
            return;
        }
        C1164n c1164n = this.f13115b;
        if (((Float) c1164n.f13145z.getAnimatedValue()).floatValue() == 0.0f) {
            c1164n.f13119A = 0;
            c1164n.d(0);
        } else {
            c1164n.f13119A = 2;
            c1164n.f13138s.invalidate();
        }
    }
}
