package X6FRs_4.KQgRr5e_0.YghfZG_14;

import X6FRs_4.IMuAHx_6.EuDEkJe_12.G83uNX_24;
import X6FRs_4.IMuAHx_6.EuDEkJe_12.KVtv3R_25;
import X6FRs_4.IMuAHx_6.EuDEkJe_12.XDsvEfm_26;
import android.view.View;
import android.view.animation.Interpolator;
import java.util.ArrayList;
import java.util.Iterator;
/* compiled from: ViewPropertyAnimatorCompatSet.java */
/* loaded from: classes.dex */
public class FSaI4_7 {

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public KVtv3R_25 f825KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public Interpolator f827KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public boolean f829KQgRr5e_0;
    public long KQgRr5e_0 = -1;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final XDsvEfm_26 f826KQgRr5e_0 = new KQgRr5e_0();

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final ArrayList<G83uNX_24> f828KQgRr5e_0 = new ArrayList<>();

    public FSaI4_7 KQgRr5e_0(G83uNX_24 g83uNX_24) {
        if (!this.f829KQgRr5e_0) {
            this.f828KQgRr5e_0.add(g83uNX_24);
        }
        return this;
    }

    public void PGPF6hQ_2() {
        if (this.f829KQgRr5e_0) {
            return;
        }
        Iterator<G83uNX_24> it = this.f828KQgRr5e_0.iterator();
        while (it.hasNext()) {
            G83uNX_24 next = it.next();
            long j = this.KQgRr5e_0;
            if (j >= 0) {
                next.KQgRr5e_0(j);
            }
            Interpolator interpolator = this.f827KQgRr5e_0;
            if (interpolator != null) {
                next.KQgRr5e_0(interpolator);
            }
            if (this.f825KQgRr5e_0 != null) {
                next.KQgRr5e_0(this.f826KQgRr5e_0);
            }
            next.QxJ9d_1();
        }
        this.f829KQgRr5e_0 = true;
    }

    public void QxJ9d_1() {
        this.f829KQgRr5e_0 = false;
    }

    /* compiled from: ViewPropertyAnimatorCompatSet.java */
    /* loaded from: classes.dex */
    public class KQgRr5e_0 extends XDsvEfm_26 {

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public boolean f831KQgRr5e_0 = false;
        public int KQgRr5e_0 = 0;

        public KQgRr5e_0() {
        }

        public void KQgRr5e_0() {
            this.KQgRr5e_0 = 0;
            this.f831KQgRr5e_0 = false;
            FSaI4_7.this.QxJ9d_1();
        }

        @Override // X6FRs_4.IMuAHx_6.EuDEkJe_12.XDsvEfm_26, X6FRs_4.IMuAHx_6.EuDEkJe_12.KVtv3R_25
        public void PGPF6hQ_2(View view) {
            if (this.f831KQgRr5e_0) {
                return;
            }
            this.f831KQgRr5e_0 = true;
            KVtv3R_25 kVtv3R_25 = FSaI4_7.this.f825KQgRr5e_0;
            if (kVtv3R_25 != null) {
                kVtv3R_25.PGPF6hQ_2(null);
            }
        }

        @Override // X6FRs_4.IMuAHx_6.EuDEkJe_12.KVtv3R_25
        public void KQgRr5e_0(View view) {
            int i = this.KQgRr5e_0 + 1;
            this.KQgRr5e_0 = i;
            if (i == FSaI4_7.this.f828KQgRr5e_0.size()) {
                KVtv3R_25 kVtv3R_25 = FSaI4_7.this.f825KQgRr5e_0;
                if (kVtv3R_25 != null) {
                    kVtv3R_25.KQgRr5e_0(null);
                }
                KQgRr5e_0();
            }
        }
    }

    public FSaI4_7 KQgRr5e_0(G83uNX_24 g83uNX_24, G83uNX_24 g83uNX_242) {
        this.f828KQgRr5e_0.add(g83uNX_24);
        g83uNX_242.QxJ9d_1(g83uNX_24.KQgRr5e_0());
        this.f828KQgRr5e_0.add(g83uNX_242);
        return this;
    }

    public void KQgRr5e_0() {
        if (this.f829KQgRr5e_0) {
            Iterator<G83uNX_24> it = this.f828KQgRr5e_0.iterator();
            while (it.hasNext()) {
                it.next().m216KQgRr5e_0();
            }
            this.f829KQgRr5e_0 = false;
        }
    }

    public FSaI4_7 KQgRr5e_0(long j) {
        if (!this.f829KQgRr5e_0) {
            this.KQgRr5e_0 = j;
        }
        return this;
    }

    public FSaI4_7 KQgRr5e_0(Interpolator interpolator) {
        if (!this.f829KQgRr5e_0) {
            this.f827KQgRr5e_0 = interpolator;
        }
        return this;
    }

    public FSaI4_7 KQgRr5e_0(KVtv3R_25 kVtv3R_25) {
        if (!this.f829KQgRr5e_0) {
            this.f825KQgRr5e_0 = kVtv3R_25;
        }
        return this;
    }
}
