package p037.p118;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ObjectAnimator;
import android.view.View;
import android.view.ViewGroup;
import p037.p065.p078.C1920;

/* JADX INFO: renamed from: މ.ޔ.ހ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C2471 extends AbstractC2516 {

    /* JADX INFO: renamed from: މ.ޔ.ހ$֏, reason: contains not printable characters */
    public class C2472 extends C2492 {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final /* synthetic */ View f7791;

        public C2472(C2471 c2471, View view) {
            this.f7791 = view;
        }

        @Override // p037.p118.AbstractC2485.InterfaceC2489
        /* JADX INFO: renamed from: ނ */
        public void mo1665(AbstractC2485 abstractC2485) {
            C2506.f7871.mo4585(this.f7791, 1.0f);
            C2506.f7871.mo4584(this.f7791);
            abstractC2485.mo4560(this);
        }
    }

    /* JADX INFO: renamed from: މ.ޔ.ހ$ؠ, reason: contains not printable characters */
    public static class C2473 extends AnimatorListenerAdapter {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final View f7792;

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public boolean f7793 = false;

        public C2473(View view) {
            this.f7792 = view;
        }

        @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
        public void onAnimationEnd(Animator animator) {
            C2506.f7871.mo4585(this.f7792, 1.0f);
            if (this.f7793) {
                this.f7792.setLayerType(0, null);
            }
        }

        @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
        public void onAnimationStart(Animator animator) {
            if (C1920.m3767(this.f7792) && this.f7792.getLayerType() == 0) {
                this.f7793 = true;
                this.f7792.setLayerType(2, null);
            }
        }
    }

    public C2471() {
    }

    public C2471(int i) {
        if ((i & (-4)) != 0) {
            throw new IllegalArgumentException("Only MODE_IN and MODE_OUT flags are allowed");
        }
        this.f7887 = i;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final Animator m4537(View view, float f, float f2) {
        if (f == f2) {
            return null;
        }
        C2506.f7871.mo4585(view, f);
        ObjectAnimator objectAnimatorOfFloat = ObjectAnimator.ofFloat(view, C2506.f7872, f2);
        objectAnimatorOfFloat.addListener(new C2473(view));
        mo4548(new C2472(this, view));
        return objectAnimatorOfFloat;
    }

    @Override // p037.p118.AbstractC2516
    /* JADX INFO: renamed from: ֏ */
    public Animator mo2129(ViewGroup viewGroup, View view, C2501 c2501, C2501 c25012) {
        Float f;
        float fFloatValue = (c2501 == null || (f = (Float) c2501.f7862.get("android:fade:transitionAlpha")) == null) ? 0.0f : f.floatValue();
        return m4537(view, fFloatValue != 1.0f ? fFloatValue : 0.0f, 1.0f);
    }

    @Override // p037.p118.AbstractC2516
    /* JADX INFO: renamed from: ؠ */
    public Animator mo2130(ViewGroup viewGroup, View view, C2501 c2501, C2501 c25012) {
        Float f;
        C2506.f7871.mo4587(view);
        return m4537(view, (c2501 == null || (f = (Float) c2501.f7862.get("android:fade:transitionAlpha")) == null) ? 1.0f : f.floatValue(), 0.0f);
    }

    @Override // p037.p118.AbstractC2516, p037.p118.AbstractC2485
    /* JADX INFO: renamed from: ހ */
    public void mo2516(C2501 c2501) {
        m4593(c2501);
        c2501.f7862.put("android:fade:transitionAlpha", Float.valueOf(C2506.m4582(c2501.f7863)));
    }
}
