package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.e40, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1067e40 implements InterfaceC0707aL, AutoCloseable {
    public final String l;
    public final C0972d40 m;
    public boolean n;

    public C1067e40(String str, C0972d40 c0972d40) {
        this.l = str;
        this.m = c0972d40;
    }

    @Override // o.InterfaceC0707aL
    public final void f(InterfaceC0898cL interfaceC0898cL, UK uk) {
        if (uk == UK.ON_DESTROY) {
            this.n = false;
            interfaceC0898cL.getLifecycle().c(this);
        }
    }

    public final void j(C1640k40 c1640k40, WK wk) {
        if (this.n) {
            throw new IllegalStateException("Already attached to lifecycleOwner");
        }
        this.n = true;
        wk.a(this);
        c1640k40.c(this.l, (C3024yj) this.m.a.q);
    }

    @Override // java.lang.AutoCloseable
    public final void close() {
    }
}
