what-the-bank/sources/com/google/android/gms/internal/p002firebaseauthapi/zzfr.java

36 lines
1.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.p002firebaseauthapi;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import java.io.IOException;
/* loaded from: classes2.dex */
public final class zzfr implements zzbj {
private final SharedPreferences.Editor zza;
private final String zzb = "GenericIdpKeyset";
public zzfr(Context context, String str, String str2) {
Context applicationContext = context.getApplicationContext();
if (str2 == null) {
this.zza = PreferenceManager.getDefaultSharedPreferences(applicationContext).edit();
} else {
this.zza = applicationContext.getSharedPreferences(str2, 0).edit();
}
}
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzbj
public final void zzb(zzmo zzmoVar) throws IOException {
if (!this.zza.putString(this.zzb, zzqj.zza(zzmoVar.zzq())).commit()) {
throw new IOException("Failed to write to SharedPreferences");
}
}
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzbj
public final void zzc(zzof zzofVar) throws IOException {
if (!this.zza.putString(this.zzb, zzqj.zza(zzofVar.zzq())).commit()) {
throw new IOException("Failed to write to SharedPreferences");
}
}
}