package com.google.android.gms.measurement.internal; import android.content.SharedPreferences; import androidx.annotation.WorkerThread; import com.google.android.gms.common.internal.Preconditions; /* loaded from: classes3.dex */ public final class zzgk { private final String zza; private final boolean zzb; private boolean zzc; private boolean zzd; private final /* synthetic */ zzgl zze; public zzgk(zzgl zzglVar, String str, boolean z) { this.zze = zzglVar; Preconditions.checkNotEmpty(str); this.zza = str; this.zzb = z; } @WorkerThread public final void zza(boolean z) { SharedPreferences.Editor edit = this.zze.zzg().edit(); edit.putBoolean(this.zza, z); edit.apply(); this.zzd = z; } @WorkerThread public final boolean zza() { if (!this.zzc) { this.zzc = true; this.zzd = this.zze.zzg().getBoolean(this.zza, this.zzb); } return this.zzd; } }