package o;

import android.content.Context;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class JC implements Hb0 {
    public final Context l;
    public final String m;
    public final C0692a8 n;

    /* renamed from: o, reason: collision with root package name */
    public final boolean f169o;
    public final boolean p;
    public final C1014dc0 q = new C1014dc0(new U4(9, this));
    public boolean r;

    public JC(Context context, String str, C0692a8 c0692a8, boolean z, boolean z2) {
        this.l = context;
        this.m = str;
        this.n = c0692a8;
        this.f169o = z;
        this.p = z2;
    }

    @Override // o.Hb0
    public final FC L() {
        return ((IC) this.q.getValue()).b(true);
    }

    @Override // java.io.Closeable, java.lang.AutoCloseable
    public final void close() {
        C1014dc0 c1014dc0 = this.q;
        if (c1014dc0.a()) {
            ((IC) c1014dc0.getValue()).close();
        }
    }

    @Override // o.Hb0
    public final void setWriteAheadLoggingEnabled(boolean z) {
        C1014dc0 c1014dc0 = this.q;
        if (c1014dc0.a()) {
            ((IC) c1014dc0.getValue()).setWriteAheadLoggingEnabled(z);
        }
        this.r = z;
    }
}
