what-the-bank/sources/com/google/firebase/messaging/zzy.java

59 lines
1.7 KiB
Java

package com.google.firebase.messaging;
import android.content.Context;
import android.content.SharedPreferences;
import java.lang.ref.WeakReference;
import java.util.concurrent.Executor;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes2.dex */
public final class zzy {
private static WeakReference<zzy> zza;
private final SharedPreferences zzb;
private zzx zzc;
private final Executor zzd;
private zzy(SharedPreferences sharedPreferences, Executor executor) {
this.zzd = executor;
this.zzb = sharedPreferences;
}
private final void zzb() {
synchronized (this) {
this.zzc = zzx.zza(this.zzb, "topic_operation_queue", ",", this.zzd);
}
}
public static zzy zza(Context context, Executor executor) {
zzy zzyVar;
synchronized (zzy.class) {
WeakReference<zzy> weakReference = zza;
zzyVar = weakReference != null ? weakReference.get() : null;
if (zzyVar == null) {
zzyVar = new zzy(context.getSharedPreferences("com.google.android.gms.appid", 0), executor);
zzyVar.zzb();
zza = new WeakReference<>(zzyVar);
}
}
return zzyVar;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final zzz zza() {
zzz zzc;
synchronized (this) {
zzc = zzz.zzc(this.zzc.zza());
}
return zzc;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final boolean zzb(zzz zzzVar) {
boolean zza2;
synchronized (this) {
zza2 = this.zzc.zza(zzzVar.zzc());
}
return zza2;
}
}