what-the-bank/sources/com/google/firebase/auth/internal/zzbi.java

63 lines
1.7 KiB
Java

package com.google.firebase.auth.internal;
import android.app.Application;
import android.content.Context;
import com.google.android.gms.common.api.internal.BackgroundDetector;
import com.google.android.gms.internal.p002firebaseauthapi.zzzy;
import com.google.firebase.FirebaseApp;
/* loaded from: classes2.dex */
public final class zzbi {
private volatile int zza;
private final zzam zzb;
private volatile boolean zzc;
public zzbi(FirebaseApp firebaseApp) {
Context applicationContext = firebaseApp.getApplicationContext();
zzam zzamVar = new zzam(firebaseApp);
this.zzc = false;
this.zza = 0;
this.zzb = zzamVar;
BackgroundDetector.initialize((Application) applicationContext.getApplicationContext());
BackgroundDetector.getInstance().addListener(new zzbh(this));
}
public final void zzc() {
this.zzb.zzb();
}
public final void zze(zzzy zzzyVar) {
if (zzzyVar == null) {
return;
}
long zzb = zzzyVar.zzb();
if (zzb <= 0) {
zzb = 3600;
}
long zzc = zzzyVar.zzc();
zzam zzamVar = this.zzb;
zzamVar.zza = zzc + (zzb * 1000);
zzamVar.zzb = -1L;
if (zzg()) {
this.zzb.zzc();
}
}
public final void zzd(int i) {
if (i > 0 && this.zza == 0) {
this.zza = i;
if (zzg()) {
this.zzb.zzc();
}
} else if (i == 0 && this.zza != 0) {
this.zzb.zzb();
}
this.zza = i;
}
/* JADX INFO: Access modifiers changed from: private */
public final boolean zzg() {
return this.zza > 0 && !this.zzc;
}
}