package o;

import android.view.View;
import android.view.animation.Interpolator;
import java.util.ArrayList;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.lk0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1793lk0 {
    public Interpolator c;
    public InterfaceC1888mk0 d;
    public boolean e;
    public long b = -1;
    public final Uf0 f = new Uf0(this);
    public final ArrayList a = new ArrayList();

    public final void a() {
        if (this.e) {
            ArrayList arrayList = this.a;
            int size = arrayList.size();
            int i = 0;
            while (i < size) {
                Object obj = arrayList.get(i);
                i++;
                ((C1698kk0) obj).b();
            }
            this.e = false;
        }
    }

    public final void b() {
        View view;
        if (this.e) {
            return;
        }
        ArrayList arrayList = this.a;
        int size = arrayList.size();
        int i = 0;
        while (i < size) {
            Object obj = arrayList.get(i);
            i++;
            C1698kk0 c1698kk0 = (C1698kk0) obj;
            long j = this.b;
            if (j >= 0) {
                c1698kk0.c(j);
            }
            Interpolator interpolator = this.c;
            if (interpolator != null && (view = (View) c1698kk0.a.get()) != null) {
                view.animate().setInterpolator(interpolator);
            }
            if (this.d != null) {
                c1698kk0.d(this.f);
            }
            View view2 = (View) c1698kk0.a.get();
            if (view2 != null) {
                view2.animate().start();
            }
        }
        this.e = true;
    }
}
