package androidx.activity;

import java.util.Iterator;
import java.util.concurrent.CopyOnWriteArrayList;
import p020g0.InterfaceC0731a;

/* renamed from: androidx.activity.i */
/* loaded from: classes.dex */
public abstract class AbstractC0061i {

    /* renamed from: a */
    public boolean f67a;

    /* renamed from: b */
    public CopyOnWriteArrayList<InterfaceC0053a> f68b = new CopyOnWriteArrayList<>();

    /* renamed from: c */
    public InterfaceC0731a<Boolean> f69c;

    public AbstractC0061i(boolean z) {
        this.f67a = z;
    }

    /* renamed from: a */
    public void m5003a(InterfaceC0053a interfaceC0053a) {
        this.f68b.add(interfaceC0053a);
    }

    /* renamed from: b */
    public abstract void mo3938b();

    /* renamed from: c */
    public final boolean m5002c() {
        return this.f67a;
    }

    /* renamed from: d */
    public final void m5001d() {
        Iterator<InterfaceC0053a> it = this.f68b.iterator();
        while (it.hasNext()) {
            it.next().cancel();
        }
    }

    /* renamed from: e */
    public void m5000e(InterfaceC0053a interfaceC0053a) {
        this.f68b.remove(interfaceC0053a);
    }

    /* renamed from: f */
    public final void m4999f(boolean z) {
        this.f67a = z;
        InterfaceC0731a<Boolean> interfaceC0731a = this.f69c;
        if (interfaceC0731a != null) {
            interfaceC0731a.accept(Boolean.valueOf(z));
        }
    }

    /* renamed from: g */
    public void m4998g(InterfaceC0731a<Boolean> interfaceC0731a) {
        this.f69c = interfaceC0731a;
    }
}