package j;

import android.view.View;
import android.view.animation.Interpolator;
import androidx.core.view.a2;
import androidx.core.view.z1;
import java.util.ArrayList;
import java.util.Iterator;

/* JADX INFO: loaded from: classes.dex */
public final class m {

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public Interpolator f28495c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public a2 f28496d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public boolean f28497e;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public long f28494b = -1;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final l f28498f = new l(this);

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final ArrayList f28493a = new ArrayList();

    public final void a() {
        if (this.f28497e) {
            Iterator it = this.f28493a.iterator();
            while (it.hasNext()) {
                ((z1) it.next()).b();
            }
            this.f28497e = false;
        }
    }

    public final void b() {
        if (this.f28497e) {
            return;
        }
        for (z1 z1Var : this.f28493a) {
            long j10 = this.f28494b;
            if (j10 >= 0) {
                z1Var.c(j10);
            }
            Interpolator interpolator = this.f28495c;
            if (interpolator != null) {
                z1Var.setInterpolator(interpolator);
            }
            if (this.f28496d != null) {
                z1Var.setListener(this.f28498f);
            }
            View view = (View) z1Var.f1872a.get();
            if (view != null) {
                view.animate().start();
            }
        }
        this.f28497e = true;
    }
}
