package androidx.leanback.transition;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.util.Property;
import android.view.View;
import com.debridstream.tv.R;

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

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

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final float f11768d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final float f11769e;

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

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final Property f11771g;

    public f(View view, Property property, float f6, float f7, int i6) {
        this.f11771g = property;
        this.f11767c = view;
        this.f11769e = f6;
        this.f11768d = f7;
        this.f11770f = i6;
        view.setVisibility(0);
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public final void onAnimationCancel(Animator animator) {
        View view = this.f11767c;
        view.setTag(R.id.lb_slide_transition_value, new float[]{view.getTranslationX(), view.getTranslationY()});
        this.f11771g.set(view, Float.valueOf(this.f11769e));
        this.f11765a = true;
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public final void onAnimationEnd(Animator animator) {
        boolean z6 = this.f11765a;
        View view = this.f11767c;
        if (!z6) {
            this.f11771g.set(view, Float.valueOf(this.f11769e));
        }
        view.setVisibility(this.f11770f);
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorPauseListener
    public final void onAnimationPause(Animator animator) {
        Property property = this.f11771g;
        View view = this.f11767c;
        this.f11766b = ((Float) property.get(view)).floatValue();
        property.set(view, Float.valueOf(this.f11768d));
        view.setVisibility(this.f11770f);
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorPauseListener
    public final void onAnimationResume(Animator animator) {
        Float fValueOf = Float.valueOf(this.f11766b);
        Property property = this.f11771g;
        View view = this.f11767c;
        property.set(view, fValueOf);
        view.setVisibility(0);
    }
}
