package androidx.leanback.transition;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.util.Property;
import android.view.View;
import com.martsnew.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 f8324a = false;

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

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

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

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

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

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

    public f(View view, Property property, float f3, float f7, int i) {
        this.f8330g = property;
        this.f8326c = view;
        this.f8328e = f3;
        this.f8327d = f7;
        this.f8329f = i;
        view.setVisibility(0);
    }

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

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public final void onAnimationEnd(Animator animator) {
        boolean z8 = this.f8324a;
        View view = this.f8326c;
        if (!z8) {
            this.f8330g.set(view, Float.valueOf(this.f8328e));
        }
        view.setVisibility(this.f8329f);
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorPauseListener
    public final void onAnimationPause(Animator animator) {
        Property property = this.f8330g;
        View view = this.f8326c;
        this.f8325b = ((Float) property.get(view)).floatValue();
        property.set(view, Float.valueOf(this.f8327d));
        view.setVisibility(this.f8329f);
    }

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