package o;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.view.View;
import com.google.android.gms.common.R;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.zx, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C3146zx extends AnimatorListenerAdapter implements InterfaceC2829wg0 {
    public final View a;
    public boolean b = false;

    public C3146zx(View view) {
        this.a = view;
    }

    @Override // o.InterfaceC2829wg0
    public final void b() {
        View view = this.a;
        view.setTag(R.id.transition_pause_alpha, Float.valueOf(view.getVisibility() == 0 ? AbstractC2362rk0.a.m(view) : 0.0f));
    }

    @Override // o.InterfaceC2829wg0
    public final void c() {
        this.a.setTag(R.id.transition_pause_alpha, null);
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public final void onAnimationCancel(Animator animator) {
        AbstractC2362rk0.a.v(this.a, 1.0f);
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public final void onAnimationEnd(Animator animator) {
        onAnimationEnd(animator, false);
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public final void onAnimationStart(Animator animator) {
        View view = this.a;
        if (view.hasOverlappingRendering() && view.getLayerType() == 0) {
            this.b = true;
            view.setLayerType(2, null);
        }
    }

    @Override // android.animation.Animator.AnimatorListener
    public final void onAnimationEnd(Animator animator, boolean z) {
        boolean z2 = this.b;
        View view = this.a;
        if (z2) {
            view.setLayerType(0, null);
        }
        if (z) {
            return;
        }
        C2932xk0 c2932xk0 = AbstractC2362rk0.a;
        c2932xk0.v(view, 1.0f);
        c2932xk0.getClass();
    }

    @Override // o.InterfaceC2829wg0
    public final void a(AbstractC3019yg0 abstractC3019yg0) {
    }

    @Override // o.InterfaceC2829wg0
    public final void d(AbstractC3019yg0 abstractC3019yg0) {
    }

    @Override // o.InterfaceC2829wg0
    public final void e(AbstractC3019yg0 abstractC3019yg0) {
    }

    @Override // o.InterfaceC2829wg0
    public final void f(AbstractC3019yg0 abstractC3019yg0) {
    }
}
