package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class Uf0 extends C80 {
    public final /* synthetic */ int k;
    public boolean l;
    public int m;
    public final /* synthetic */ Object n;

    public Uf0(Vf0 vf0, int i) {
        this.k = 0;
        this.n = vf0;
        this.m = i;
        this.l = false;
    }

    @Override // o.InterfaceC1888mk0
    public final void a() {
        switch (this.k) {
            case 0:
                if (!this.l) {
                    ((Vf0) this.n).a.setVisibility(this.m);
                    break;
                }
                break;
            default:
                int i = this.m + 1;
                this.m = i;
                C1793lk0 c1793lk0 = (C1793lk0) this.n;
                if (i == c1793lk0.a.size()) {
                    InterfaceC1888mk0 interfaceC1888mk0 = c1793lk0.d;
                    if (interfaceC1888mk0 != null) {
                        interfaceC1888mk0.a();
                    }
                    this.m = 0;
                    this.l = false;
                    c1793lk0.e = false;
                    break;
                }
                break;
        }
    }

    @Override // o.C80, o.InterfaceC1888mk0
    public void b() {
        switch (this.k) {
            case 0:
                this.l = true;
                break;
        }
    }

    @Override // o.C80, o.InterfaceC1888mk0
    public final void c() {
        switch (this.k) {
            case 0:
                ((Vf0) this.n).a.setVisibility(0);
                break;
            default:
                if (!this.l) {
                    this.l = true;
                    InterfaceC1888mk0 interfaceC1888mk0 = ((C1793lk0) this.n).d;
                    if (interfaceC1888mk0 != null) {
                        interfaceC1888mk0.c();
                        break;
                    }
                }
                break;
        }
    }

    public Uf0(C1793lk0 c1793lk0) {
        this.k = 1;
        this.n = c1793lk0;
        this.l = false;
        this.m = 0;
    }
}
