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

46 lines
1.6 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.p002firebaseauthapi;
import android.app.Activity;
import com.google.android.gms.common.util.DefaultClock;
import com.google.firebase.auth.PhoneAuthProvider;
import java.util.Map;
import java.util.concurrent.Executor;
import o.nyh;
/* loaded from: classes2.dex */
public final class zzyp {
private static final Map zza = new nyh();
public static PhoneAuthProvider.OnVerificationStateChangedCallbacks zza(String str, PhoneAuthProvider.OnVerificationStateChangedCallbacks onVerificationStateChangedCallbacks, zzyb zzybVar) {
zze(str, zzybVar);
return new zzyn(onVerificationStateChangedCallbacks, str);
}
public static void zzc() {
zza.clear();
}
public static boolean zzd(String str, PhoneAuthProvider.OnVerificationStateChangedCallbacks onVerificationStateChangedCallbacks, Activity activity, Executor executor) {
Map map = zza;
if (map.containsKey(str)) {
zzyo zzyoVar = (zzyo) map.get(str);
if (DefaultClock.getInstance().currentTimeMillis() - zzyoVar.zzb < 120000) {
zzyb zzybVar = zzyoVar.zza;
if (zzybVar == null) {
return true;
}
zzybVar.zzh(onVerificationStateChangedCallbacks, activity, executor, str);
return true;
}
zze(str, null);
return false;
}
zze(str, null);
return false;
}
private static void zze(String str, zzyb zzybVar) {
zza.put(str, new zzyo(zzybVar, DefaultClock.getInstance().currentTimeMillis()));
}
}