package com.google.android.gms.measurement.internal;

import android.content.SharedPreferences;

/* JADX INFO: loaded from: classes2.dex */
public final class w0 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final String f21948a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final boolean f21949b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public boolean f21950c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public boolean f21951d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ y0 f21952e;

    public w0(y0 y0Var, String str, boolean z10) {
        this.f21952e = y0Var;
        com.google.android.gms.common.internal.w.checkNotEmpty(str);
        this.f21948a = str;
        this.f21949b = z10;
    }

    public final void a(boolean z10) {
        SharedPreferences.Editor editorEdit = this.f21952e.F().edit();
        editorEdit.putBoolean(this.f21948a, z10);
        editorEdit.apply();
        this.f21951d = z10;
    }

    public final boolean b() {
        if (!this.f21950c) {
            this.f21950c = true;
            this.f21951d = this.f21952e.F().getBoolean(this.f21948a, this.f21949b);
        }
        return this.f21951d;
    }
}
